Class ProcessBundleDescriptors


  • public class ProcessBundleDescriptors
    extends java.lang.Object
    Utility methods for creating BeamFnApi.ProcessBundleDescriptor instances.
    • Constructor Detail

      • ProcessBundleDescriptors

        public ProcessBundleDescriptors()
    • 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 the BeamFnApi.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:
        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