public class RowRecogPartitionStateRepoNoGroup extends Object implements RowRecogPartitionStateRepo
Constructor and Description |
---|
RowRecogPartitionStateRepoNoGroup(RowRecogPartitionStateImpl singletonState)
Ctor.
|
RowRecogPartitionStateRepoNoGroup(RowRecogPreviousStrategyImpl getter,
boolean keepScheduleState,
RowRecogPartitionTerminationStateComparator terminationStateCompare) |
Modifier and Type | Method and Description |
---|---|
void |
accept(RowRecogNFAViewServiceVisitor visitor) |
RowRecogPartitionStateRepo |
copyForIterate(boolean forOutOfOrderReprocessing)
Copy state for iteration.
|
void |
destroy() |
RowRecogPartitionStateRepoScheduleState |
getScheduleState() |
RowRecogPartitionState |
getState(EventBean theEvent,
boolean collect)
Return state for event or create state if not found.
|
RowRecogPartitionState |
getState(Object key)
Return state for key or create state if not found.
|
int |
getStateCount() |
int |
incrementAndGetEventSequenceNum() |
boolean |
isPartitioned() |
int |
removeOld(EventBean[] oldEvents,
boolean isEmpty,
boolean[] found)
Remove old events from the state, applicable for "prev" function and partial NFA state.
|
void |
removeState(Object partitionKey) |
void |
setEventSequenceNum(int num) |
public RowRecogPartitionStateRepoNoGroup(RowRecogPartitionStateImpl singletonState)
singletonState
- statepublic RowRecogPartitionStateRepoNoGroup(RowRecogPreviousStrategyImpl getter, boolean keepScheduleState, RowRecogPartitionTerminationStateComparator terminationStateCompare)
public int incrementAndGetEventSequenceNum()
incrementAndGetEventSequenceNum
in interface RowRecogPartitionStateRepo
public void setEventSequenceNum(int num)
setEventSequenceNum
in interface RowRecogPartitionStateRepo
public RowRecogPartitionStateRepoScheduleState getScheduleState()
getScheduleState
in interface RowRecogPartitionStateRepo
public void removeState(Object partitionKey)
removeState
in interface RowRecogPartitionStateRepo
public RowRecogPartitionStateRepo copyForIterate(boolean forOutOfOrderReprocessing)
copyForIterate
in interface RowRecogPartitionStateRepo
forOutOfOrderReprocessing
- indicator whether we are processing out-of-order eventspublic int removeOld(EventBean[] oldEvents, boolean isEmpty, boolean[] found)
RowRecogPartitionStateRepo
removeOld
in interface RowRecogPartitionStateRepo
oldEvents
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deletedpublic RowRecogPartitionState getState(EventBean theEvent, boolean collect)
RowRecogPartitionStateRepo
getState
in interface RowRecogPartitionStateRepo
theEvent
- to look upcollect
- true if a collection of unused state can occurpublic RowRecogPartitionState getState(Object key)
RowRecogPartitionStateRepo
getState
in interface RowRecogPartitionStateRepo
key
- to look uppublic void accept(RowRecogNFAViewServiceVisitor visitor)
accept
in interface RowRecogPartitionStateRepo
public boolean isPartitioned()
isPartitioned
in interface RowRecogPartitionStateRepo
public int getStateCount()
getStateCount
in interface RowRecogPartitionStateRepo
public void destroy()
destroy
in interface RowRecogPartitionStateRepo
Copyright © 2005–2018. All rights reserved.