Class AbsentLogicalPreStateProcessor
- java.lang.Object
-
- io.siddhi.core.query.input.stream.state.StreamPreStateProcessor
-
- io.siddhi.core.query.input.stream.state.LogicalPreStateProcessor
-
- io.siddhi.core.query.input.stream.state.AbsentLogicalPreStateProcessor
-
- All Implemented Interfaces:
PartitionCreationListener,AbsentPreStateProcessor,PreStateProcessor,Processor,SchedulingProcessor
public class AbsentLogicalPreStateProcessor extends LogicalPreStateProcessor implements AbsentPreStateProcessor
Logical not processor.
-
-
Field Summary
-
Fields inherited from class io.siddhi.core.query.input.stream.state.LogicalPreStateProcessor
logicalType, partnerStatePreProcessor
-
Fields inherited from class io.siddhi.core.query.input.stream.state.StreamPreStateProcessor
eventTimeComparator, isStartState, lock, nextProcessor, siddhiQueryContext, startStateIds, stateEventCloner, stateEventFactory, stateHolder, stateId, stateType, streamEventCloner, streamEventFactory, thisLastProcessor, thisStatePostProcessor, withinEveryPreStateProcessor, withinTime
-
-
Constructor Summary
Constructors Constructor Description AbsentLogicalPreStateProcessor(io.siddhi.query.api.execution.query.input.state.LogicalStateElement.Type type, io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType, io.siddhi.query.api.expression.constant.TimeConstant waitingTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEveryState(StateEvent stateEvent)protected voidaddState(StateEvent stateEvent, io.siddhi.core.query.input.stream.state.StreamPreStateProcessor.StreamPreState state)SchedulergetScheduler()voidinit(SiddhiQueryContext siddhiQueryContext)voidpartitionCreated()Get called when partition is createdbooleanpartnerCanProceed(StateEvent stateEvent)voidprocess(ComplexEventChunk complexEventChunk)Process the handed StreamEventvoidprocess(List<ComplexEventChunk> complexEventChunks)Process the handed StreamEventComplexEventChunk<StateEvent>processAndReturn(ComplexEventChunk complexEventChunk)voidsetScheduler(Scheduler scheduler)voidupdateLastArrivalTime(long timestamp)Update the timestamp of the event arrived to this processor and met the filter conditions.-
Methods inherited from class io.siddhi.core.query.input.stream.state.LogicalPreStateProcessor
addEventToNewAndEveryStateEventList, isNewAndEveryStateEventListEmpty, moveAllNewAndEveryStateEventListEventsToPendingStateEventList, resetState, setPartnerStatePreProcessor, updateState
-
Methods inherited from class io.siddhi.core.query.input.stream.state.StreamPreStateProcessor
addState, expireEvents, getNextProcessor, getPendingStateEventList, getStateId, getThisLastProcessor, getThisStatePostProcessor, init, isExpired, isStartState, process, removeOnNoStateChange, setNextProcessor, setStartState, setStartStateIds, setStateEventCloner, setStateEventFactory, setStateId, setStreamEventCloner, setStreamEventFactory, setThisLastProcessor, setThisStatePostProcessor, setToLast, setWithinEveryPreStateProcessor, setWithinTime, stateChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.siddhi.core.query.processor.Processor
getNextProcessor, setNextProcessor, setToLast
-
-
-
-
Constructor Detail
-
AbsentLogicalPreStateProcessor
public AbsentLogicalPreStateProcessor(io.siddhi.query.api.execution.query.input.state.LogicalStateElement.Type type, io.siddhi.query.api.execution.query.input.stream.StateInputStream.Type stateType, io.siddhi.query.api.expression.constant.TimeConstant waitingTime)
-
-
Method Detail
-
init
public void init(SiddhiQueryContext siddhiQueryContext)
- Overrides:
initin classStreamPreStateProcessor
-
updateLastArrivalTime
public void updateLastArrivalTime(long timestamp)
Description copied from interface:AbsentPreStateProcessorUpdate the timestamp of the event arrived to this processor and met the filter conditions.- Specified by:
updateLastArrivalTimein interfaceAbsentPreStateProcessor- Parameters:
timestamp- the timestamp if the event
-
addState
protected void addState(StateEvent stateEvent, io.siddhi.core.query.input.stream.state.StreamPreStateProcessor.StreamPreState state)
- Overrides:
addStatein classLogicalPreStateProcessor
-
addEveryState
public void addEveryState(StateEvent stateEvent)
- Specified by:
addEveryStatein interfacePreStateProcessor- Overrides:
addEveryStatein classLogicalPreStateProcessor
-
process
public void process(ComplexEventChunk complexEventChunk)
Description copied from class:StreamPreStateProcessorProcess the handed StreamEvent- Specified by:
processin interfaceProcessor- Overrides:
processin classStreamPreStateProcessor- Parameters:
complexEventChunk- event chunk to be processed
-
process
public void process(List<ComplexEventChunk> complexEventChunks)
Description copied from interface:ProcessorProcess the handed StreamEvent- Specified by:
processin interfaceProcessor- Overrides:
processin classStreamPreStateProcessor- Parameters:
complexEventChunks- event chunks to be processed
-
processAndReturn
public ComplexEventChunk<StateEvent> processAndReturn(ComplexEventChunk complexEventChunk)
- Specified by:
processAndReturnin interfacePreStateProcessor- Overrides:
processAndReturnin classLogicalPreStateProcessor
-
getScheduler
public Scheduler getScheduler()
- Specified by:
getSchedulerin interfaceSchedulingProcessor
-
setScheduler
public void setScheduler(Scheduler scheduler)
- Specified by:
setSchedulerin interfaceSchedulingProcessor
-
partitionCreated
public void partitionCreated()
Description copied from interface:PartitionCreationListenerGet called when partition is created- Specified by:
partitionCreatedin interfacePartitionCreationListener
-
partnerCanProceed
public boolean partnerCanProceed(StateEvent stateEvent)
-
-