Class RowRecogPartitionStateRepoGroup
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.state.RowRecogPartitionStateRepoGroup
- All Implemented Interfaces:
RowRecogPartitionStateRepo
Partition-by implementation for partition state.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Empty state collection initial threshold. -
Constructor Summary
ConstructorDescriptionRowRecogPartitionStateRepoGroup
(RowRecogPreviousStrategyImpl getter, RowRecogPartitionStateRepoGroupMeta meta, boolean keepScheduleState, RowRecogPartitionTerminationStateComparator terminationStateCompare) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RowRecogNFAViewServiceVisitor visitor) copyForIterate
(boolean forOutOfOrderReprocessing) Copy state for iteration.void
destroy()
static Object
getKeys
(EventBean theEvent, RowRecogPartitionStateRepoGroupMeta meta) 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)
-
Field Details
-
INITIAL_COLLECTION_MIN
public static final int INITIAL_COLLECTION_MINEmpty state collection initial threshold.- See Also:
-
-
Constructor Details
-
RowRecogPartitionStateRepoGroup
public RowRecogPartitionStateRepoGroup(RowRecogPreviousStrategyImpl getter, RowRecogPartitionStateRepoGroupMeta meta, 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
Description copied from interface:RowRecogPartitionStateRepo
Copy state for iteration.- Specified by:
copyForIterate
in interfaceRowRecogPartitionStateRepo
- Parameters:
forOutOfOrderReprocessing
- indicator whether we are processing out-of-order events- Returns:
- copied state
-
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:
oldData
- 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 key or create state if not found.- Specified by:
getState
in interfaceRowRecogPartitionStateRepo
- Parameters:
key
- to look up- Returns:
- state
-
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 upisCollect
- true if a collection of unused state can occur- Returns:
- state
-
accept
- Specified by:
accept
in interfaceRowRecogPartitionStateRepo
-
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitioned
in interfaceRowRecogPartitionStateRepo
-
getStates
-
getStateCount
public int getStateCount()- Specified by:
getStateCount
in interfaceRowRecogPartitionStateRepo
-
getKeys
-
destroy
public void destroy()- Specified by:
destroy
in interfaceRowRecogPartitionStateRepo
-