Class MessageGeneratorTransform<I,K,V>
- java.lang.Object
-
- org.apache.nemo.common.ir.vertex.transform.NoWatermarkEmitTransform<I,Pair<K,V>>
-
- org.apache.nemo.common.ir.vertex.transform.MessageGeneratorTransform<I,K,V>
-
- Type Parameters:
I
- input type.K
- output key type.V
- output value type.
public final class MessageGeneratorTransform<I,K,V> extends NoWatermarkEmitTransform<I,Pair<K,V>>
ATransform
for the message generator vertex.- 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 MessageGeneratorTransform(MessageGeneratorVertex.MessageGeneratorFunction<I,K,V> userFunction)
TriggerTransform constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the transform.void
onData(I element)
On data received.void
prepare(Transform.Context context, OutputCollector<Pair<K,V>> oc)
Prepare the transform.java.lang.String
toString()
-
Methods inherited from class org.apache.nemo.common.ir.vertex.transform.NoWatermarkEmitTransform
onLatencymark, onWatermark
-
-
-
-
Constructor Detail
-
MessageGeneratorTransform
public MessageGeneratorTransform(MessageGeneratorVertex.MessageGeneratorFunction<I,K,V> userFunction)
TriggerTransform constructor.- Parameters:
userFunction
- that analyzes the data.
-
-
Method Detail
-
prepare
public void prepare(Transform.Context context, OutputCollector<Pair<K,V>> oc)
Description copied from interface:Transform
Prepare the transform.- Parameters:
context
- of the transform.oc
- that collects outputs.
-
onData
public void onData(I element)
Description copied from interface:Transform
On data received.- Parameters:
element
- data received.
-
close
public void close()
Description copied from interface:Transform
Close the transform.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-