Class InMemoryTridentWindowManager
- java.lang.Object
-
- org.apache.storm.trident.windowing.AbstractTridentWindowManager<TridentTuple>
-
- org.apache.storm.trident.windowing.InMemoryTridentWindowManager
-
- All Implemented Interfaces:
ITridentWindowManager
public class InMemoryTridentWindowManager extends AbstractTridentWindowManager<TridentTuple>
ThisITridentWindowManagerinstance stores all the tuples and trigger related information inmemory.
-
-
Field Summary
-
Fields inherited from class org.apache.storm.trident.windowing.AbstractTridentWindowManager
aggregator, delegateCollector, pendingTriggers, triggerId, windowManager, windowStore, windowTaskId
-
-
Constructor Summary
Constructors Constructor Description InMemoryTridentWindowManager(WindowConfig windowConfig, String windowTaskId, WindowsStore windowStore, Aggregator aggregator, BatchOutputCollector delegateCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTuplesBatch(Object batchId, List<TridentTuple> tuples)Add received batch of tuples to cache/store and add them toWindowManager.StringgetBatchTxnId(Object batchId)List<TridentTuple>getTridentTuples(List<TridentTuple> tridentBatchTuples)ReturnTridentTuples from giventupleEvents.protected voidinitialize()Load and initialize any resources into window manager before windowing for component/task is activated.voidonTuplesExpired(List<TridentTuple> expiredTuples)Handle expired tuple events which can be removing from cache or store.-
Methods inherited from class org.apache.storm.trident.windowing.AbstractTridentWindowManager
getPendingTriggers, prepare, shutdown
-
-
-
-
Constructor Detail
-
InMemoryTridentWindowManager
public InMemoryTridentWindowManager(WindowConfig windowConfig, String windowTaskId, WindowsStore windowStore, Aggregator aggregator, BatchOutputCollector delegateCollector)
-
-
Method Detail
-
initialize
protected void initialize()
Description copied from class:AbstractTridentWindowManagerLoad and initialize any resources into window manager before windowing for component/task is activated.- Specified by:
initializein classAbstractTridentWindowManager<TridentTuple>
-
getTridentTuples
public List<TridentTuple> getTridentTuples(List<TridentTuple> tridentBatchTuples)
Description copied from class:AbstractTridentWindowManagerReturnTridentTuples from giventupleEvents.- Specified by:
getTridentTuplesin classAbstractTridentWindowManager<TridentTuple>
-
onTuplesExpired
public void onTuplesExpired(List<TridentTuple> expiredTuples)
Description copied from class:AbstractTridentWindowManagerHandle expired tuple events which can be removing from cache or store.- Specified by:
onTuplesExpiredin classAbstractTridentWindowManager<TridentTuple>
-
addTuplesBatch
public void addTuplesBatch(Object batchId, List<TridentTuple> tuples)
Description copied from interface:ITridentWindowManagerAdd received batch of tuples to cache/store and add them toWindowManager.
-
-