Class WindowTridentProcessor
java.lang.Object
org.apache.storm.trident.windowing.WindowTridentProcessor
- All Implemented Interfaces:
- Serializable,- TridentProcessor,- TupleReceiver
TridentProcessor implementation for windowing operations on trident stream.- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionWindowTridentProcessor(WindowConfig windowConfig, String uniqueWindowId, WindowsStoreFactory windowStoreFactory, Fields inputFields, Aggregator aggregator, boolean storeTuplesInStore) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanup()voidexecute(ProcessorContext processorContext, String streamId, TridentTuple tuple) voidfinishBatch(ProcessorContext processorContext) voidflush()static StringgenerateWindowTriggerKey(String windowTaskId, int triggerId) static ObjectgetBatchTxnId(Object batchId) static StringgetWindowTriggerInprocessIdPrefix(String windowTaskId) static StringgetWindowTriggerTaskPrefix(String windowTaskId) voidprepare(Map<String, Object> topoConf, TopologyContext context, TridentContext tridentContext) voidstartBatch(ProcessorContext processorContext) triggerKey(int triggerId) 
- 
Field Details- 
TRIGGER_INPROCESS_PREFIX- See Also:
 
- 
TRIGGER_PREFIX- See Also:
 
- 
TRIGGER_COUNT_PREFIX- See Also:
 
- 
TRIGGER_FIELD_NAME- See Also:
 
- 
DEFAULT_INMEMORY_TUPLE_CACHE_LIMITpublic static final long DEFAULT_INMEMORY_TUPLE_CACHE_LIMIT- See Also:
 
 
- 
- 
Constructor Details- 
WindowTridentProcessorpublic WindowTridentProcessor(WindowConfig windowConfig, String uniqueWindowId, WindowsStoreFactory windowStoreFactory, Fields inputFields, Aggregator aggregator, boolean storeTuplesInStore) 
 
- 
- 
Method Details- 
getWindowTriggerInprocessIdPrefix
- 
getWindowTriggerTaskPrefix
- 
getBatchTxnId
- 
generateWindowTriggerKey
- 
preparepublic void prepare(Map<String, Object> topoConf, TopologyContext context, TridentContext tridentContext) - Specified by:
- preparein interface- TridentProcessor
 
- 
cleanuppublic void cleanup()- Specified by:
- cleanupin interface- TridentProcessor
 
- 
startBatch- Specified by:
- startBatchin interface- TridentProcessor
 
- 
execute- Specified by:
- executein interface- TupleReceiver
 
- 
flushpublic void flush()- Specified by:
- flushin interface- TupleReceiver
 
- 
finishBatch- Specified by:
- finishBatchin interface- TridentProcessor
 
- 
getOutputFactory- Specified by:
- getOutputFactoryin interface- TridentProcessor
 
- 
triggerKey
 
-