public class RegexPartitionStateRepoGroup extends java.lang.Object implements RegexPartitionStateRepo
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_COLLECTION_MIN
Empty state collection initial threshold.
|
Constructor and Description |
---|
RegexPartitionStateRepoGroup(RegexPartitionStateRandomAccessGetter getter,
RegexPartitionStateRepoGroupMeta meta)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EventRowRegexNFAViewServiceVisitor visitor) |
RegexPartitionStateRepo |
copyForIterate()
Copy state for iteration.
|
RegexPartitionState |
getState(EventBean theEvent,
boolean isCollect)
Return state for event or create state if not found.
|
RegexPartitionState |
getState(java.lang.Object key)
Return state for key or create state if not found.
|
boolean |
isPartitioned() |
void |
removeOld(EventBean[] oldData,
boolean isEmpty,
boolean[] found)
Remove old events from the state, applicable for "prev" function and partial NFA state.
|
void |
removeState(java.lang.Object partitionKey) |
public static final int INITIAL_COLLECTION_MIN
public RegexPartitionStateRepoGroup(RegexPartitionStateRandomAccessGetter getter, RegexPartitionStateRepoGroupMeta meta)
getter
- for "prev" function accessmeta
- general metadata for groupingpublic void removeState(java.lang.Object partitionKey)
removeState
in interface RegexPartitionStateRepo
public RegexPartitionStateRepo copyForIterate()
RegexPartitionStateRepo
copyForIterate
in interface RegexPartitionStateRepo
public void removeOld(EventBean[] oldData, boolean isEmpty, boolean[] found)
RegexPartitionStateRepo
removeOld
in interface RegexPartitionStateRepo
oldData
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deletedpublic RegexPartitionState getState(java.lang.Object key)
RegexPartitionStateRepo
getState
in interface RegexPartitionStateRepo
key
- to look uppublic RegexPartitionState getState(EventBean theEvent, boolean isCollect)
RegexPartitionStateRepo
getState
in interface RegexPartitionStateRepo
theEvent
- to look upisCollect
- true if a collection of unused state can occurpublic void accept(EventRowRegexNFAViewServiceVisitor visitor)
accept
in interface RegexPartitionStateRepo
public boolean isPartitioned()
isPartitioned
in interface RegexPartitionStateRepo