Class ProcessBundleDescriptors
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.control.ProcessBundleDescriptors
-
public class ProcessBundleDescriptors extends java.lang.ObjectUtility methods for creatingBeamFnApi.ProcessBundleDescriptorinstances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessBundleDescriptors.BagUserStateSpec<K,V,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>A container type storing references to the key, value, and windowCoderused when handling bag user state requests.static classProcessBundleDescriptors.ExecutableProcessBundleDescriptorstatic classProcessBundleDescriptors.SideInputSpec<T,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>A container type storing references to the value, and windowCoderused when handling side input state requests.static classProcessBundleDescriptors.TimerSpec<K,V,W extends org.apache.beam.sdk.transforms.windowing.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 Constructor Description ProcessBundleDescriptors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessBundleDescriptors.ExecutableProcessBundleDescriptorfromExecutableStage(java.lang.String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint)static ProcessBundleDescriptors.ExecutableProcessBundleDescriptorfromExecutableStage(java.lang.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.ProcessBundleDescriptoris constructed by: Adding gRPC read and write nodes wiring them to the specified data endpoint.static java.util.Map<java.lang.String,java.util.Map<java.lang.String,ProcessBundleDescriptors.SideInputSpec>>getSideInputs(org.apache.beam.sdk.util.construction.graph.ExecutableStage stage)
-
-
-
Method Detail
-
fromExecutableStage
public static ProcessBundleDescriptors.ExecutableProcessBundleDescriptor fromExecutableStage(java.lang.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 java.io.IOException
Note that theBeamFnApi.ProcessBundleDescriptoris constructed by:- Adding gRPC read and write nodes wiring them to the specified data endpoint.
- Setting the state
Endpoints.ApiServiceDescriptorto 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:
java.io.IOException
-
fromExecutableStage
public static ProcessBundleDescriptors.ExecutableProcessBundleDescriptor fromExecutableStage(java.lang.String id, org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor dataEndpoint) throws java.io.IOException
- Throws:
java.io.IOException
-
getSideInputs
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,ProcessBundleDescriptors.SideInputSpec>> getSideInputs(org.apache.beam.sdk.util.construction.graph.ExecutableStage stage) throws java.io.IOException
- Throws:
java.io.IOException
-
-