Interface RowRecogPartitionStateRepo
- All Known Implementing Classes:
RowRecogPartitionStateRepoGroup
,RowRecogPartitionStateRepoNoGroup
public interface RowRecogPartitionStateRepo
Service for holding partition state.
-
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)
-
Method Details
-
getState
Return state for key or create state if not found.- Parameters:
key
- to look up- Returns:
- state
-
getState
Return state for event or create state if not found.- Parameters:
theEvent
- to look upisCollect
- true if a collection of unused state can occur- Returns:
- state
-
removeOld
Remove old events from the state, applicable for "prev" function and partial NFA state.- Parameters:
events
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deleted- Returns:
- number removed
-
copyForIterate
Copy state for iteration.- Parameters:
forOutOfOrderReprocessing
- indicator whether we are processing out-of-order events- Returns:
- copied state
-
removeState
-
accept
-
isPartitioned
boolean isPartitioned() -
getStateCount
int getStateCount() -
incrementAndGetEventSequenceNum
int incrementAndGetEventSequenceNum() -
setEventSequenceNum
void setEventSequenceNum(int num) -
getScheduleState
RowRecogPartitionStateRepoScheduleState getScheduleState() -
destroy
void destroy()
-