public class RegexPartitionStateRepoNoGroup extends java.lang.Object implements RegexPartitionStateRepo
Constructor and Description |
---|
RegexPartitionStateRepoNoGroup(RegexPartitionState singletonState,
boolean hasInterval)
Ctor.
|
RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter,
boolean hasInterval)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EventRowRegexNFAViewServiceVisitor visitor) |
RegexPartitionStateRepo |
copyForIterate()
Copy state for iteration.
|
RegexPartitionState |
getState(EventBean theEvent,
boolean collect)
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[] oldEvents,
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 RegexPartitionStateRepoNoGroup(RegexPartitionState singletonState, boolean hasInterval)
singletonState
- statehasInterval
- true for intervalpublic RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter, boolean hasInterval)
getter
- "prev" getterhasInterval
- true for intervalpublic void removeState(java.lang.Object partitionKey)
removeState
in interface RegexPartitionStateRepo
public RegexPartitionStateRepo copyForIterate()
copyForIterate
in interface RegexPartitionStateRepo
public void removeOld(EventBean[] oldEvents, boolean isEmpty, boolean[] found)
RegexPartitionStateRepo
removeOld
in interface RegexPartitionStateRepo
oldEvents
- to removeisEmpty
- indicator if there are not matchesfound
- indicator if any partial matches exist to be deletedpublic RegexPartitionState getState(EventBean theEvent, boolean collect)
RegexPartitionStateRepo
getState
in interface RegexPartitionStateRepo
theEvent
- to look upcollect
- true if a collection of unused state can occurpublic RegexPartitionState getState(java.lang.Object key)
RegexPartitionStateRepo
getState
in interface RegexPartitionStateRepo
key
- to look uppublic void accept(EventRowRegexNFAViewServiceVisitor visitor)
accept
in interface RegexPartitionStateRepo
public boolean isPartitioned()
isPartitioned
in interface RegexPartitionStateRepo