public class RegexPartitionState
extends java.lang.Object
Constructor and Description |
---|
RegexPartitionState(RegexPartitionStateRandomAccessGetter getter,
java.util.List<RegexNFAStateEntry> currentStates,
boolean hasInterval)
Ctor.
|
RegexPartitionState(RegexPartitionStateRandomAccessGetter getter,
java.util.List<RegexNFAStateEntry> currentStates,
java.lang.Object optionalKeys,
boolean hasInterval)
Ctor.
|
RegexPartitionState(RegexPartitionStateRandomAccessImpl randomAccess,
java.lang.Object optionalKeys,
boolean hasInterval)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCallbackItem(RegexNFAStateEntry endState)
Add a callback item for intervals.
|
java.util.List<RegexNFAStateEntry> |
getCallbackItems()
Returns the interval states, if any.
|
java.util.List<RegexNFAStateEntry> |
getCurrentStates()
Returns partial matches.
|
java.lang.Integer |
getNumIntervalCallbackItems() |
int |
getNumStates() |
java.lang.Object |
getOptionalKeys()
Returns partition keys, if any.
|
RegexPartitionStateRandomAccessImpl |
getRandomAccess()
Returns the random access for "prev".
|
boolean |
isCallbackScheduled()
Returns indicator if callback is schedule.
|
void |
removeEventFromPrev(EventBean oldEvent)
Remove an event from random access for "prev".
|
void |
removeEventFromPrev(EventBean[] oldEvents)
Remove an event from random access for "prev".
|
boolean |
removeEventFromState(EventBean oldEvent)
Remove an event from state.
|
void |
setCallbackScheduled(boolean callbackScheduled)
Returns indicator if callback is schedule.
|
void |
setCurrentStates(java.util.List<RegexNFAStateEntry> currentStates)
Sets partial matches.
|
public RegexPartitionState(RegexPartitionStateRandomAccessImpl randomAccess, java.lang.Object optionalKeys, boolean hasInterval)
randomAccess
- for handling "prev" functions, if anyoptionalKeys
- keys for "partition", if anyhasInterval
- true if an interval is providedpublic RegexPartitionState(RegexPartitionStateRandomAccessGetter getter, java.util.List<RegexNFAStateEntry> currentStates, boolean hasInterval)
getter
- for "prev" accesscurrentStates
- existing statehasInterval
- true for intervalpublic RegexPartitionState(RegexPartitionStateRandomAccessGetter getter, java.util.List<RegexNFAStateEntry> currentStates, java.lang.Object optionalKeys, boolean hasInterval)
getter
- for "prev" accesscurrentStates
- existing stateoptionalKeys
- partition keys if anyhasInterval
- true for intervalpublic RegexPartitionStateRandomAccessImpl getRandomAccess()
public java.util.List<RegexNFAStateEntry> getCurrentStates()
public void setCurrentStates(java.util.List<RegexNFAStateEntry> currentStates)
currentStates
- state to setpublic java.lang.Object getOptionalKeys()
public void removeEventFromPrev(EventBean[] oldEvents)
oldEvents
- to removepublic void removeEventFromPrev(EventBean oldEvent)
oldEvent
- to removepublic boolean removeEventFromState(EventBean oldEvent)
oldEvent
- to removepublic java.util.List<RegexNFAStateEntry> getCallbackItems()
public boolean isCallbackScheduled()
public void setCallbackScheduled(boolean callbackScheduled)
callbackScheduled
- true if scheduledpublic void addCallbackItem(RegexNFAStateEntry endState)
endState
- to addpublic int getNumStates()
public java.lang.Integer getNumIntervalCallbackItems()