Package org.apache.beam.fn.harness
Class MapFnRunners
- java.lang.Object
-
- org.apache.beam.fn.harness.MapFnRunners
-
public abstract class MapFnRunners extends java.lang.ObjectUtilities to createPTransformRunnerswhich execute simple map functions.Simple map functions are used in a large number of transforms, especially runner-managed transforms, such as map_windows.
TODO: Add support for DoFns which are actually user supplied map/lambda functions instead of using the
FnApiDoFnRunnerinstance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMapFnRunners.ValueMapFnFactory<InputT,OutputT>A function factory which given a PTransform returns a map function.static interfaceMapFnRunners.WindowedValueMapFnFactory<InputT,OutputT>A function factory which given a PTransform returns a map function over the entireWindowedValueof input and output elements.
-
Constructor Summary
Constructors Constructor Description MapFnRunners()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <InputT,OutputT>
PTransformRunnerFactoryforValueMapFnFactory(MapFnRunners.ValueMapFnFactory<InputT,OutputT> fnFactory)Create aMapFnRunnerswhere the map function consumes elements directly.static <InputT,OutputT>
PTransformRunnerFactoryforWindowedValueMapFnFactory(MapFnRunners.WindowedValueMapFnFactory<InputT,OutputT> fnFactory)
-
-
-
Method Detail
-
forValueMapFnFactory
public static <InputT,OutputT> PTransformRunnerFactory forValueMapFnFactory(MapFnRunners.ValueMapFnFactory<InputT,OutputT> fnFactory)
Create aMapFnRunnerswhere the map function consumes elements directly.
-
forWindowedValueMapFnFactory
public static <InputT,OutputT> PTransformRunnerFactory forWindowedValueMapFnFactory(MapFnRunners.WindowedValueMapFnFactory<InputT,OutputT> fnFactory)
Create aMapFnRunnerswhere the map function consumesWindowed Valuesand producedWindowed Values.Each
WindowedValueprovided to the function produced by theMapFnRunners.WindowedValueMapFnFactorywill be in exactly onewindow.
-
-