public class DoFnFunction<InputT,OutputT> extends org.apache.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) |
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)
public void setup()
setup
in class org.apache.gearpump.streaming.dsl.scalaapi.functions.SerializableFunction
public void teardown()
teardown
in class org.apache.gearpump.streaming.dsl.scalaapi.functions.SerializableFunction
public java.util.Iterator<TranslatorUtils.RawUnionValue> flatMap(java.util.List<TranslatorUtils.RawUnionValue> inputs)
flatMap
in class org.apache.gearpump.streaming.dsl.javaapi.functions.FlatMapFunction<java.util.List<TranslatorUtils.RawUnionValue>,TranslatorUtils.RawUnionValue>