Class MessageAggregatorTransform<K,V,O>
- java.lang.Object
-
- org.apache.nemo.common.ir.vertex.transform.NoWatermarkEmitTransform<Pair<K,V>,O>
-
- org.apache.nemo.common.ir.vertex.transform.MessageAggregatorTransform<K,V,O>
-
- Type Parameters:
K
- input key type.V
- input value type.O
- output type.
public final class MessageAggregatorTransform<K,V,O> extends NoWatermarkEmitTransform<Pair<K,V>,O>
ATransform
that aggregates statistics generated by theMessageGeneratorTransform
.- 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 MessageAggregatorTransform(MessageAggregatorVertex.InitialStateSupplier<O> initialStateSupplier, MessageAggregatorVertex.MessageAggregatorFunction<K,V,O> aggregator)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the transform.void
onData(Pair<K,V> element)
On data received.void
prepare(Transform.Context context, OutputCollector<O> oc)
Prepare the transform.java.lang.String
toString()
-
Methods inherited from class org.apache.nemo.common.ir.vertex.transform.NoWatermarkEmitTransform
onLatencymark, onWatermark
-
-
-
-
Constructor Detail
-
MessageAggregatorTransform
public MessageAggregatorTransform(MessageAggregatorVertex.InitialStateSupplier<O> initialStateSupplier, MessageAggregatorVertex.MessageAggregatorFunction<K,V,O> aggregator)
Default constructor.- Parameters:
initialStateSupplier
- to use.aggregator
- to use.
-
-
Method Detail
-
prepare
public void prepare(Transform.Context context, OutputCollector<O> oc)
Description copied from interface:Transform
Prepare the transform.- Parameters:
context
- of the transform.oc
- that collects outputs.
-
onData
public void onData(Pair<K,V> 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
-
-