public class DoFnFunction<InputT,OutputT> extends io.gearpump.streaming.dsl.javaapi.functions.FlatMapFunction<java.util.List<TranslatorUtils.RawUnionValue>,TranslatorUtils.RawUnionValue>
FlatMapFunction
wrapper over Beam DoFn
.Constructor and Description |
---|
DoFnFunction(GearpumpPipelineOptions pipelineOptions,
DoFn<InputT,OutputT> doFn,
WindowingStrategy<?,?> windowingStrategy,
java.util.Collection<PCollectionView<?>> sideInputs,
java.util.Map<java.lang.String,PCollectionView<?>> sideInputTagMapping,
TupleTag<OutputT> mainOutput,
java.util.Map<TupleTag<?>,Coder<?>> outputCoders,
java.util.List<TupleTag<?>> sideOutputs,
DoFnSchemaInformation doFnSchemaInformation) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<TranslatorUtils.RawUnionValue> |
flatMap(java.util.List<TranslatorUtils.RawUnionValue> inputs) |
void |
setup() |
void |
teardown() |
public DoFnFunction(GearpumpPipelineOptions pipelineOptions, DoFn<InputT,OutputT> doFn, WindowingStrategy<?,?> windowingStrategy, java.util.Collection<PCollectionView<?>> sideInputs, java.util.Map<java.lang.String,PCollectionView<?>> sideInputTagMapping, TupleTag<OutputT> mainOutput, java.util.Map<TupleTag<?>,Coder<?>> outputCoders, java.util.List<TupleTag<?>> sideOutputs, DoFnSchemaInformation doFnSchemaInformation)
public void setup()
setup
in class io.gearpump.streaming.dsl.api.functions.SerializableFunction
public void teardown()
teardown
in class io.gearpump.streaming.dsl.api.functions.SerializableFunction
public java.util.Iterator<TranslatorUtils.RawUnionValue> flatMap(java.util.List<TranslatorUtils.RawUnionValue> inputs)
flatMap
in class io.gearpump.streaming.dsl.javaapi.functions.FlatMapFunction<java.util.List<TranslatorUtils.RawUnionValue>,TranslatorUtils.RawUnionValue>