Class SdkHarnessClient.BundleProcessor
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.control.SdkHarnessClient.BundleProcessor
-
- Enclosing class:
- SdkHarnessClient
public class SdkHarnessClient.BundleProcessor extends java.lang.ObjectA processor capable of creating bundles for some registeredBeamFnApi.ProcessBundleDescriptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSdkHarnessClient.BundleProcessor.ActiveBundleAn active bundle for a particularBeamFnApi.ProcessBundleDescriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkHarnessClient.BundleProcessor.ActiveBundlenewBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, java.util.Map<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.String>,RemoteOutputReceiver<org.apache.beam.sdk.util.construction.Timer<?>>> timerReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler, BundleFinalizationHandler finalizationHandler, BundleCheckpointHandler checkpointHandler)Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.SdkHarnessClient.BundleProcessor.ActiveBundlenewBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, java.util.Map<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.String>,RemoteOutputReceiver<org.apache.beam.sdk.util.construction.Timer<?>>> timerReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler, BundleSplitHandler splitHandler, BundleCheckpointHandler checkpointHandler, BundleFinalizationHandler finalizationHandler)Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.SdkHarnessClient.BundleProcessor.ActiveBundlenewBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, BundleProgressHandler progressHandler)Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.SdkHarnessClient.BundleProcessor.ActiveBundlenewBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler)Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.
-
-
-
Method Detail
-
newBundle
public SdkHarnessClient.BundleProcessor.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, BundleProgressHandler progressHandler)
Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.The input channels for the returned
SdkHarnessClient.BundleProcessor.ActiveBundleare derived from the instructions in theBeamFnApi.ProcessBundleDescriptor.NOTE: It is important to
SdkHarnessClient.close()each bundle after all elements are emitted.try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) { FnDataReceiver<InputT> inputReceiver = (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId); // send all main input elements ... }An exception during
SdkHarnessClient.close()will be thrown if the bundle requests finalization or attempts to checkpoint by returning aBeamFnApi.DelayedBundleApplication.
-
newBundle
public SdkHarnessClient.BundleProcessor.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler)
Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.The input channels for the returned
SdkHarnessClient.BundleProcessor.ActiveBundleare derived from the instructions in theBeamFnApi.ProcessBundleDescriptor.NOTE: It is important to
SdkHarnessClient.close()each bundle after all elements are emitted.try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) { FnDataReceiver<InputT> inputReceiver = (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId); // send all main input elements ... }An exception during
SdkHarnessClient.close()will be thrown if the bundle requests finalization or attempts to checkpoint by returning aBeamFnApi.DelayedBundleApplication.
-
newBundle
public SdkHarnessClient.BundleProcessor.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, java.util.Map<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.String>,RemoteOutputReceiver<org.apache.beam.sdk.util.construction.Timer<?>>> timerReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler, BundleFinalizationHandler finalizationHandler, BundleCheckpointHandler checkpointHandler)
Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.The input channels for the returned
SdkHarnessClient.BundleProcessor.ActiveBundleare derived from the instructions in theBeamFnApi.ProcessBundleDescriptor.NOTE: It is important to
SdkHarnessClient.close()each bundle after all elements are emitted.try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) { FnDataReceiver<InputT> inputReceiver = (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId); // send all main input elements ... }An exception during
SdkHarnessClient.close()will be thrown if the bundle requests finalization ifBundleFinalizationHandlerisnullor attempts to checkpoint by returning aBeamFnApi.DelayedBundleApplication.
-
newBundle
public SdkHarnessClient.BundleProcessor.ActiveBundle newBundle(java.util.Map<java.lang.String,RemoteOutputReceiver<?>> outputReceivers, java.util.Map<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.String>,RemoteOutputReceiver<org.apache.beam.sdk.util.construction.Timer<?>>> timerReceivers, StateRequestHandler stateRequestHandler, BundleProgressHandler progressHandler, BundleSplitHandler splitHandler, BundleCheckpointHandler checkpointHandler, BundleFinalizationHandler finalizationHandler)
Start a new bundle for the givenBeamFnApi.ProcessBundleDescriptoridentifier.The input channels for the returned
SdkHarnessClient.BundleProcessor.ActiveBundleare derived from the instructions in theBeamFnApi.ProcessBundleDescriptor.NOTE: It is important to
SdkHarnessClient.close()each bundle after all elements are emitted.try (ActiveBundle bundle = SdkHarnessClient.newBundle(...)) { FnDataReceiver<InputT> inputReceiver = (FnDataReceiver) bundle.getInputReceivers().get(mainPCollectionId); // send all elements ... }
-
-