public static class IntervalWindowTopology.IntervalWindowBolt extends BaseWindowedBolt
BaseWindowedBolt.Count, BaseWindowedBolt.DurationtimestampExtractor, windowConfiguration| Constructor and Description |
|---|
IntervalWindowBolt() |
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(TupleWindow inputWindow)
Process the tuple window and optionally emit new tuples based on the tuples in the input
window.
|
void |
prepare(java.util.Map conf,
TopologyContext context,
OutputCollector collector)
This is similar to the
IBolt.prepare(Map, TopologyContext, OutputCollector) except
that while emitting, the tuples are automatically anchored to the tuples in the inputWindow. |
cleanup, getComponentConfiguration, getTimestampExtractor, withLag, withLateTupleStream, withTimestampExtractor, withTimestampField, withTumblingWindow, withTumblingWindow, withWatermarkInterval, withWindow, withWindow, withWindow, withWindow, withWindow, withWindowpublic void prepare(java.util.Map conf,
TopologyContext context,
OutputCollector collector)
IWindowedBoltIBolt.prepare(Map, TopologyContext, OutputCollector) except
that while emitting, the tuples are automatically anchored to the tuples in the inputWindow.prepare in interface IWindowedBoltprepare in class BaseWindowedBoltpublic void execute(TupleWindow inputWindow)
IWindowedBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
IComponentdeclareOutputFields in interface IComponentdeclareOutputFields in class BaseWindowedBoltdeclarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream