public interface IWindowedBolt extends IComponent
A bolt abstraction for supporting time and count based sliding & tumbling windows.
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
execute(TupleWindow inputWindow)
Process the tuple window and optionally emit new tuples based on the tuples in the input window.
|
TimestampExtractor |
getTimestampExtractor()
Return a
TimestampExtractor for extracting timestamps from a tuple for event time based processing, or null for processing time. |
void |
prepare(Map stormConf,
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. |
declareOutputFields, getComponentConfiguration
void prepare(Map stormConf, 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.
void execute(TupleWindow inputWindow)
Process the tuple window and optionally emit new tuples based on the tuples in the input window.
void cleanup()
TimestampExtractor getTimestampExtractor()
Return a TimestampExtractor
for extracting timestamps from a tuple for event time based processing, or null for processing time.
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.