public class RowRecogPartitionStateRepoGroup extends Object implements RowRecogPartitionStateRepo
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_COLLECTION_MIN
Empty state collection initial threshold.
|
Constructor and Description |
---|
RowRecogPartitionStateRepoGroup(RowRecogPreviousStrategyImpl getter,
RowRecogPartitionStateRepoGroupMeta meta,
boolean keepScheduleState,
RowRecogPartitionTerminationStateComparator terminationStateCompare) |
Modifier and Type | Method and Description |
---|---|
void |
accept(RowRecogNFAViewServiceVisitor visitor) |
RowRecogPartitionStateRepo |
copyForIterate(boolean forOutOfOrderReprocessing)
Copy state for iteration.
|
void |
destroy() |
static Object |
getKeys(EventBean theEvent,
RowRecogPartitionStateRepoGroupMeta meta) |
RowRecogPartitionStateRepoScheduleState |
getScheduleState() |
RowRecogPartitionStateImpl |
getState(EventBean theEvent,
boolean isCollect)
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() |
Map<Object,RowRecogPartitionStateImpl> |
getStates() |
int |
incrementAndGetEventSequenceNum() |
boolean |
isPartitioned() |
int |
removeOld(EventBean[] oldData,
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 static final int INITIAL_COLLECTION_MIN
public RowRecogPartitionStateRepoGroup(RowRecogPreviousStrategyImpl getter, RowRecogPartitionStateRepoGroupMeta meta, 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)
RowRecogPartitionStateRepo
copyForIterate
in interface RowRecogPartitionStateRepo
forOutOfOrderReprocessing
- indicator whether we are processing out-of-order eventspublic int removeOld(EventBean[] oldData, boolean isEmpty, boolean[] found)
RowRecogPartitionStateRepo
removeOld
in interface RowRecogPartitionStateRepo
oldData
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deletedpublic RowRecogPartitionState getState(Object key)
RowRecogPartitionStateRepo
getState
in interface RowRecogPartitionStateRepo
key
- to look uppublic RowRecogPartitionStateImpl getState(EventBean theEvent, boolean isCollect)
RowRecogPartitionStateRepo
getState
in interface RowRecogPartitionStateRepo
theEvent
- to look upisCollect
- true if a collection of unused state can occurpublic void accept(RowRecogNFAViewServiceVisitor visitor)
accept
in interface RowRecogPartitionStateRepo
public boolean isPartitioned()
isPartitioned
in interface RowRecogPartitionStateRepo
public Map<Object,RowRecogPartitionStateImpl> getStates()
public int getStateCount()
getStateCount
in interface RowRecogPartitionStateRepo
public static Object getKeys(EventBean theEvent, RowRecogPartitionStateRepoGroupMeta meta)
public void destroy()
destroy
in interface RowRecogPartitionStateRepo
Copyright © 2005–2018. All rights reserved.