public class AbsentStreamPreStateProcessor extends StreamPreStateProcessor implements AbsentPreStateProcessor
eventTimeComparator, isStartState, lock, nextProcessor, siddhiQueryContext, startStateIds, stateEventCloner, stateEventFactory, stateHolder, stateId, stateType, streamEventCloner, streamEventFactory, thisLastProcessor, thisStatePostProcessor, withinEveryPreStateProcessor, withinTime| Constructor and Description |
|---|
AbsentStreamPreStateProcessor(io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType,
long waitingTime)
Construct an AbsentStreamPreStateProcessor object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEveryState(StateEvent stateEvent) |
protected void |
addState(StateEvent stateEvent,
io.siddhi.core.query.input.stream.state.StreamPreStateProcessor.StreamPreState preState) |
Scheduler |
getScheduler() |
void |
init(SiddhiQueryContext siddhiQueryContext) |
void |
partitionCreated()
Get called when partition is created
|
void |
process(ComplexEventChunk complexEventChunk)
Process the handed StreamEvent
|
void |
process(List<ComplexEventChunk> complexEventChunks)
Process the handed StreamEvent
|
ComplexEventChunk<StateEvent> |
processAndReturn(ComplexEventChunk complexEventChunk) |
protected boolean |
removeOnNoStateChange(io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType) |
void |
resetState() |
void |
setScheduler(Scheduler scheduler) |
void |
updateLastArrivalTime(long timestamp)
Update the timestamp of the event arrived to this processor and met the filter conditions.
|
addState, expireEvents, getNextProcessor, getPendingStateEventList, getStateId, getThisLastProcessor, getThisStatePostProcessor, init, isExpired, isStartState, process, setNextProcessor, setStartState, setStartStateIds, setStateEventCloner, setStateEventFactory, setStateId, setStreamEventCloner, setStreamEventFactory, setThisLastProcessor, setThisStatePostProcessor, setToLast, setWithinEveryPreStateProcessor, setWithinTime, stateChanged, updateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextProcessor, setNextProcessor, setToLastpublic AbsentStreamPreStateProcessor(io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType,
long waitingTime)
stateType - PATTERN or SEQUENCEwaitingTime - the waiting time defined by 'for' keywordpublic void init(SiddhiQueryContext siddhiQueryContext)
init in class StreamPreStateProcessorpublic void updateLastArrivalTime(long timestamp)
AbsentPreStateProcessorupdateLastArrivalTime in interface AbsentPreStateProcessortimestamp - the timestamp if the eventprotected void addState(StateEvent stateEvent, io.siddhi.core.query.input.stream.state.StreamPreStateProcessor.StreamPreState preState)
addState in class StreamPreStateProcessorpublic void addEveryState(StateEvent stateEvent)
addEveryState in interface PreStateProcessoraddEveryState in class StreamPreStateProcessorpublic void resetState()
resetState in interface PreStateProcessorresetState in class StreamPreStateProcessorpublic void process(ComplexEventChunk complexEventChunk)
StreamPreStateProcessorprocess in interface Processorprocess in class StreamPreStateProcessorcomplexEventChunk - event chunk to be processedpublic void process(List<ComplexEventChunk> complexEventChunks)
Processorprocess in interface Processorprocess in class StreamPreStateProcessorcomplexEventChunks - event chunks to be processedpublic ComplexEventChunk<StateEvent> processAndReturn(ComplexEventChunk complexEventChunk)
processAndReturn in interface PreStateProcessorprocessAndReturn in class StreamPreStateProcessorprotected boolean removeOnNoStateChange(io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType)
removeOnNoStateChange in class StreamPreStateProcessorpublic Scheduler getScheduler()
getScheduler in interface SchedulingProcessorpublic void setScheduler(Scheduler scheduler)
setScheduler in interface SchedulingProcessorpublic void partitionCreated()
PartitionCreationListenerpartitionCreated in interface PartitionCreationListenerCopyright © 2020. All rights reserved.