Class ProcessBundleDescriptors
java.lang.Object
org.apache.beam.runners.fnexecution.control.ProcessBundleDescriptors
Utility methods for creating
BeamFnApi.ProcessBundleDescriptor
instances.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A container type storing references to the key, value, and windowCoder
used when handling bag user state requests.static class
static class
A container type storing references to the value, and windowCoder
used when handling side input state requests.static class
ProcessBundleDescriptors.TimerSpec<K,
V, W extends BoundedWindow> A container type storing references to the key, timer and payload coders and the remote input destination used when handling timer requests. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromExecutableStage
(String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint) fromExecutableStage
(String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor stateEndpoint) Note that theBeamFnApi.ProcessBundleDescriptor
is constructed by: Adding gRPC read and write nodes wiring them to the specified data endpoint.getSideInputs
(org.apache.beam.sdk.util.construction.graph.ExecutableStage stage)
-
Constructor Details
-
ProcessBundleDescriptors
public ProcessBundleDescriptors()
-
-
Method Details
-
fromExecutableStage
public static ProcessBundleDescriptors.ExecutableProcessBundleDescriptor fromExecutableStage(String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor stateEndpoint) throws IOException Note that theBeamFnApi.ProcessBundleDescriptor
is constructed by:- Adding gRPC read and write nodes wiring them to the specified data endpoint.
- Setting the state
Endpoints.ApiServiceDescriptor
to the specified state endpoint. - Modifying the coder on PCollections that are accessed as side inputs to be length prefixed making them binary compatible with the coder chosen when that side input is materialized.
- Throws:
IOException
-
fromExecutableStage
public static ProcessBundleDescriptors.ExecutableProcessBundleDescriptor fromExecutableStage(String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint) throws IOException - Throws:
IOException
-
getSideInputs
public static Map<String,Map<String, getSideInputsProcessBundleDescriptors.SideInputSpec>> (org.apache.beam.sdk.util.construction.graph.ExecutableStage stage) throws IOException - Throws:
IOException
-