Class BatchSideInputHandlerFactory
java.lang.Object
org.apache.beam.runners.fnexecution.translation.BatchSideInputHandlerFactory
- All Implemented Interfaces:
- StateRequestHandlers.SideInputHandlerFactory
public class BatchSideInputHandlerFactory
extends Object
implements StateRequestHandlers.SideInputHandlerFactory
StateRequestHandler that uses a BatchSideInputHandlerFactory.SideInputGetter to access side inputs.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceReturns the value for the side input with the given PCollection id from the runner.
- 
Method SummaryModifier and TypeMethodDescription<V,W extends BoundedWindow> 
 StateRequestHandlers.IterableSideInputHandler<V, W> forIterableSideInput(String transformId, String sideInputId, Coder<V> elementCoder, Coder<W> windowCoder) <K,V, W extends BoundedWindow> 
 StateRequestHandlers.MultimapSideInputHandler<K, V, W> forMultimapSideInput(String transformId, String sideInputId, KvCoder<K, V> elementCoder, Coder<W> windowCoder) static BatchSideInputHandlerFactoryforStage(org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, BatchSideInputHandlerFactory.SideInputGetter sideInputGetter) Creates a new state handler for the given stage.
- 
Method Details- 
forStagepublic static BatchSideInputHandlerFactory forStage(org.apache.beam.sdk.util.construction.graph.ExecutableStage stage, BatchSideInputHandlerFactory.SideInputGetter sideInputGetter) Creates a new state handler for the given stage. Note that this requires a traversal of the stage itself, so this should only be called once per stage rather than once per bundle.
- 
forIterableSideInputpublic <V,W extends BoundedWindow> StateRequestHandlers.IterableSideInputHandler<V,W> forIterableSideInput(String transformId, String sideInputId, Coder<V> elementCoder, Coder<W> windowCoder) Description copied from interface:StateRequestHandlers.SideInputHandlerFactoryReturns anStateRequestHandlers.IterableSideInputHandlerfor the givenpTransformId,sideInputId. The suppliedelementCoderandwindowCodershould be used to encode/decode their respective values.- Specified by:
- forIterableSideInputin interface- StateRequestHandlers.SideInputHandlerFactory
 
- 
forMultimapSideInputpublic <K,V, StateRequestHandlers.MultimapSideInputHandler<K,W extends BoundedWindow> V, forMultimapSideInputW> (String transformId, String sideInputId, KvCoder<K, V> elementCoder, Coder<W> windowCoder) Description copied from interface:StateRequestHandlers.SideInputHandlerFactoryReturns aStateRequestHandlers.MultimapSideInputHandlerfor the givenpTransformId,sideInputId. The suppliedelementCoderandwindowCodershould be used to encode/decode their respective values.- Specified by:
- forMultimapSideInputin interface- StateRequestHandlers.SideInputHandlerFactory
 
 
-