Class StreamletWindowOperator<R,T>
- java.lang.Object
-
- org.apache.heron.api.bolt.BaseWindowedBolt
-
- org.apache.heron.streamlet.impl.operators.StreamletWindowOperator<R,T>
-
- All Implemented Interfaces:
Serializable
,IWindowedBolt
,IComponent
,IStreamletOperator<R,T>
,IStreamletWindowOperator<R,T>
- Direct Known Subclasses:
GeneralReduceByKeyAndWindowOperator
,JoinOperator
,ReduceByKeyAndWindowOperator
public abstract class StreamletWindowOperator<R,T> extends BaseWindowedBolt implements IStreamletWindowOperator<R,T>
The Bolt interface that other windowed operators of the streamlet packages extend. The only common stuff amongst all of them is the output streams- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.heron.api.bolt.BaseWindowedBolt
BaseWindowedBolt.Count
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputCollector
collector
-
Fields inherited from class org.apache.heron.api.bolt.BaseWindowedBolt
timestampExtractor, windowConfiguration
-
-
Constructor Summary
Constructors Constructor Description StreamletWindowOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
The operators implementing streamlet functionality have some properties.void
prepare(Map<String,Object> map, TopologyContext topologyContext, OutputCollector outputCollector)
This is similar to theIBolt.prepare(Map, TopologyContext, OutputCollector)
except that while emitting, the tuples are automatically anchored to the tuples in the inputWindow.-
Methods inherited from class org.apache.heron.api.bolt.BaseWindowedBolt
cleanup, getComponentConfiguration, getTimestampExtractor, withCustomEvictor, withCustomTrigger, withLag, withLateTupleStream, withTimestampExtractor, withTimestampField, withTumblingWindow, withTumblingWindow, withWatermarkInterval, withWindow, withWindow, withWindow, withWindow, withWindow, withWindow
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.heron.api.topology.IComponent
getComponentConfiguration
-
Methods inherited from interface org.apache.heron.api.bolt.IWindowedBolt
cleanup, execute, getTimestampExtractor
-
-
-
-
Field Detail
-
collector
protected OutputCollector collector
-
-
Method Detail
-
prepare
public void prepare(Map<String,Object> map, TopologyContext topologyContext, OutputCollector outputCollector)
Description copied from interface:IWindowedBolt
This is similar to theIBolt.prepare(Map, TopologyContext, OutputCollector)
except that while emitting, the tuples are automatically anchored to the tuples in the inputWindow.- Specified by:
prepare
in interfaceIWindowedBolt
- Overrides:
prepare
in classBaseWindowedBolt
-
declareOutputFields
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
The operators implementing streamlet functionality have some properties. 1. They all output only one stream 2. They should be able to consume each other's output This imply that the output stream should be named same for all of them.- Specified by:
declareOutputFields
in interfaceIComponent
- Overrides:
declareOutputFields
in classBaseWindowedBolt
- Parameters:
outputFieldsDeclarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream
-
-