public class LastGroupByPerEventOutputRateLimiter extends OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>
OutputRateLimiter which will collect pre-defined number of events and the emit only the
last event. This implementation specifically handle queries with group by.latencyTracker, lockWrapper, outputCallback, queryCallbacks, siddhiQueryContext, stateHolder| Constructor and Description |
|---|
LastGroupByPerEventOutputRateLimiter(String id,
Integer value) |
| Modifier and Type | Method and Description |
|---|---|
protected StateFactory<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState> |
init() |
void |
partitionCreated()
Get called when partition is created
|
void |
process(ComplexEventChunk complexEventChunk) |
addQueryCallback, getOutputCallback, hasCallBack, init, sendToCallBacks, setOutputCallbackprotected StateFactory<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState> init()
init in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>public void process(ComplexEventChunk complexEventChunk)
process in class OutputRateLimiter<io.siddhi.core.query.output.ratelimit.event.LastGroupByPerEventOutputRateLimiter.RateLimiterState>public void partitionCreated()
PartitionCreationListenerCopyright © 2019. All rights reserved.