Class DoFnTransform<InputT,OutputT>
- java.lang.Object
-
- org.apache.nemo.compiler.frontend.beam.transform.AbstractDoFnTransform<InputT,InputT,OutputT>
-
- org.apache.nemo.compiler.frontend.beam.transform.DoFnTransform<InputT,OutputT>
-
- Type Parameters:
InputT
- input type.OutputT
- output type.
- All Implemented Interfaces:
java.io.Serializable
,Transform<org.apache.beam.sdk.util.WindowedValue<InputT>,org.apache.beam.sdk.util.WindowedValue<OutputT>>
public final class DoFnTransform<InputT,OutputT> extends AbstractDoFnTransform<InputT,InputT,OutputT>
DoFn transform implementation when there is no side input.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.nemo.common.ir.vertex.transform.Transform
Transform.Context
-
-
Constructor Summary
Constructors Constructor Description DoFnTransform(org.apache.beam.sdk.transforms.DoFn<InputT,OutputT> doFn, org.apache.beam.sdk.coders.Coder<InputT> inputCoder, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.coders.Coder<?>> outputCoders, org.apache.beam.sdk.values.TupleTag<OutputT> mainOutputTag, java.util.List<org.apache.beam.sdk.values.TupleTag<?>> additionalOutputTags, org.apache.beam.sdk.values.WindowingStrategy<?,?> windowingStrategy, org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.transforms.display.DisplayData displayData, org.apache.beam.sdk.transforms.DoFnSchemaInformation doFnSchemaInformation, java.util.Map<java.lang.String,org.apache.beam.sdk.values.PCollectionView<?>> sideInputMapping)
DoFnTransform Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeClose()
void
onData(org.apache.beam.sdk.util.WindowedValue<InputT> data)
On data received.void
onWatermark(Watermark watermark)
On watermark received.protected org.apache.beam.sdk.transforms.DoFn
wrapDoFn(org.apache.beam.sdk.transforms.DoFn initDoFn)
-
Methods inherited from class org.apache.nemo.compiler.frontend.beam.transform.AbstractDoFnTransform
close, getDoFn, getOutputCollector, onLatencymark, prepare, toString
-
-
-
-
Constructor Detail
-
DoFnTransform
public DoFnTransform(org.apache.beam.sdk.transforms.DoFn<InputT,OutputT> doFn, org.apache.beam.sdk.coders.Coder<InputT> inputCoder, java.util.Map<org.apache.beam.sdk.values.TupleTag<?>,org.apache.beam.sdk.coders.Coder<?>> outputCoders, org.apache.beam.sdk.values.TupleTag<OutputT> mainOutputTag, java.util.List<org.apache.beam.sdk.values.TupleTag<?>> additionalOutputTags, org.apache.beam.sdk.values.WindowingStrategy<?,?> windowingStrategy, org.apache.beam.sdk.options.PipelineOptions options, org.apache.beam.sdk.transforms.display.DisplayData displayData, org.apache.beam.sdk.transforms.DoFnSchemaInformation doFnSchemaInformation, java.util.Map<java.lang.String,org.apache.beam.sdk.values.PCollectionView<?>> sideInputMapping)
DoFnTransform Constructor.- Parameters:
doFn
- doFninputCoder
- input coderoutputCoders
- output codersmainOutputTag
- main output tagadditionalOutputTags
- additional output tagswindowingStrategy
- windowing strategyoptions
- pipeline optionsdisplayData
- display data.doFnSchemaInformation
- doFn schema information.sideInputMapping
- side input mapping.
-
-
Method Detail
-
wrapDoFn
protected org.apache.beam.sdk.transforms.DoFn wrapDoFn(org.apache.beam.sdk.transforms.DoFn initDoFn)
-
onData
public void onData(org.apache.beam.sdk.util.WindowedValue<InputT> data)
Description copied from interface:Transform
On data received.- Parameters:
data
- data received.
-
onWatermark
public void onWatermark(Watermark watermark)
Description copied from interface:Transform
On watermark received. This method should be called for the minimum watermark among input streams (input watermark). Transform may emit collected data after receiving watermarks.- Parameters:
watermark
- watermark
-
beforeClose
protected void beforeClose()
-
-