Class RowRecogPartitionStateRepoNoGroup
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.state.RowRecogPartitionStateRepoNoGroup
- All Implemented Interfaces:
RowRecogPartitionStateRepo
State for when no partitions (single partition) is required.
-
Constructor Summary
ConstructorDescriptionRowRecogPartitionStateRepoNoGroup
(RowRecogPreviousStrategyImpl getter, boolean keepScheduleState, RowRecogPartitionTerminationStateComparator terminationStateCompare) RowRecogPartitionStateRepoNoGroup
(RowRecogPartitionStateImpl singletonState) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RowRecogNFAViewServiceVisitor visitor) copyForIterate
(boolean forOutOfOrderReprocessing) Copy state for iteration.void
destroy()
Return state for event or create state if not found.Return state for key or create state if not found.int
int
boolean
int
Remove old events from the state, applicable for "prev" function and partial NFA state.void
removeState
(Object partitionKey) void
setEventSequenceNum
(int num)
-
Constructor Details
-
RowRecogPartitionStateRepoNoGroup
Ctor.- Parameters:
singletonState
- state
-
RowRecogPartitionStateRepoNoGroup
public RowRecogPartitionStateRepoNoGroup(RowRecogPreviousStrategyImpl getter, boolean keepScheduleState, RowRecogPartitionTerminationStateComparator terminationStateCompare)
-
-
Method Details
-
incrementAndGetEventSequenceNum
public int incrementAndGetEventSequenceNum()- Specified by:
incrementAndGetEventSequenceNum
in interfaceRowRecogPartitionStateRepo
-
setEventSequenceNum
public void setEventSequenceNum(int num) - Specified by:
setEventSequenceNum
in interfaceRowRecogPartitionStateRepo
-
getScheduleState
- Specified by:
getScheduleState
in interfaceRowRecogPartitionStateRepo
-
removeState
- Specified by:
removeState
in interfaceRowRecogPartitionStateRepo
-
copyForIterate
Copy state for iteration.- Specified by:
copyForIterate
in interfaceRowRecogPartitionStateRepo
- Parameters:
forOutOfOrderReprocessing
- indicator whether we are processing out-of-order events- Returns:
- copy
-
removeOld
Description copied from interface:RowRecogPartitionStateRepo
Remove old events from the state, applicable for "prev" function and partial NFA state.- Specified by:
removeOld
in interfaceRowRecogPartitionStateRepo
- Parameters:
oldEvents
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deleted- Returns:
- number removed
-
getState
Description copied from interface:RowRecogPartitionStateRepo
Return state for event or create state if not found.- Specified by:
getState
in interfaceRowRecogPartitionStateRepo
- Parameters:
theEvent
- to look upcollect
- true if a collection of unused state can occur- Returns:
- state
-
getState
Description copied from interface:RowRecogPartitionStateRepo
Return state for key or create state if not found.- Specified by:
getState
in interfaceRowRecogPartitionStateRepo
- Parameters:
key
- to look up- Returns:
- state
-
accept
- Specified by:
accept
in interfaceRowRecogPartitionStateRepo
-
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitioned
in interfaceRowRecogPartitionStateRepo
-
getStateCount
public int getStateCount()- Specified by:
getStateCount
in interfaceRowRecogPartitionStateRepo
-
destroy
public void destroy()- Specified by:
destroy
in interfaceRowRecogPartitionStateRepo
-