Class WindowFnTransform<T,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
- java.lang.Object
-
- org.apache.nemo.common.ir.vertex.transform.LatencymarkEmitTransform<org.apache.beam.sdk.util.WindowedValue<T>,org.apache.beam.sdk.util.WindowedValue<T>>
-
- org.apache.nemo.compiler.frontend.beam.transform.WindowFnTransform<T,W>
-
- Type Parameters:
T
- input/output type.W
- window type
- All Implemented Interfaces:
java.io.Serializable
,Transform<org.apache.beam.sdk.util.WindowedValue<T>,org.apache.beam.sdk.util.WindowedValue<T>>
public final class WindowFnTransform<T,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow> extends LatencymarkEmitTransform<org.apache.beam.sdk.util.WindowedValue<T>,org.apache.beam.sdk.util.WindowedValue<T>>
Windowing transform implementation. This transform simply windows the given elements into finite windows according to a user-specified WindowFnTransform.- 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 WindowFnTransform(org.apache.beam.sdk.transforms.windowing.WindowFn windowFn, org.apache.beam.sdk.transforms.display.DisplayData displayData)
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the transform.void
onData(org.apache.beam.sdk.util.WindowedValue<T> windowedValue)
On data received.void
onWatermark(Watermark watermark)
On watermark received.java.lang.String
toString()
-
Methods inherited from class org.apache.nemo.common.ir.vertex.transform.LatencymarkEmitTransform
getOutputCollector, onLatencymark, prepare
-
-
-
-
Method Detail
-
onData
public void onData(org.apache.beam.sdk.util.WindowedValue<T> windowedValue)
Description copied from interface:Transform
On data received.- Parameters:
windowedValue
- 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
-
close
public void close()
Description copied from interface:Transform
Close the transform.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-