public class RowRecogPartitionStateImpl extends Object implements RowRecogPartitionState
Constructor and Description |
---|
RowRecogPartitionStateImpl(RowRecogPreviousStrategyImpl getter,
List<RowRecogNFAStateEntry> currentStates)
Ctor.
|
RowRecogPartitionStateImpl(RowRecogPreviousStrategyImpl getter,
List<RowRecogNFAStateEntry> currentStates,
Object optionalKeys)
Ctor.
|
RowRecogPartitionStateImpl(RowRecogStateRandomAccess randomAccess,
Object optionalKeys)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentStates() |
List<RowRecogNFAStateEntry> |
getCurrentStatesForPrint() |
Iterator<RowRecogNFAStateEntry> |
getCurrentStatesIterator()
Returns partial matches.
|
int |
getNumStates() |
Object |
getOptionalKeys()
Returns partition keys, if any.
|
RowRecogStateRandomAccess |
getRandomAccess()
Returns the random access for "prev".
|
boolean |
isEmptyCurrentState() |
void |
removeEventFromPrev(EventBean oldEvent)
Remove an event from random access for "prev".
|
void |
removeEventFromPrev(EventBean[] oldEvents)
Remove an event from random access for "prev".
|
int |
removeEventFromState(EventBean oldEvent)
Remove an event from state.
|
static List<RowRecogNFAStateEntry> |
removeEventFromState(EventBean oldEvent,
Iterator<RowRecogNFAStateEntry> states) |
void |
setCurrentStates(List<RowRecogNFAStateEntry> currentStates)
Sets partial matches.
|
public RowRecogPartitionStateImpl(RowRecogStateRandomAccess randomAccess, Object optionalKeys)
randomAccess
- for handling "prev" functions, if anyoptionalKeys
- keys for "partition", if anypublic RowRecogPartitionStateImpl(RowRecogPreviousStrategyImpl getter, List<RowRecogNFAStateEntry> currentStates)
getter
- for "prev" accesscurrentStates
- existing statepublic RowRecogPartitionStateImpl(RowRecogPreviousStrategyImpl getter, List<RowRecogNFAStateEntry> currentStates, Object optionalKeys)
getter
- for "prev" accesscurrentStates
- existing stateoptionalKeys
- partition keys if anypublic RowRecogStateRandomAccess getRandomAccess()
getRandomAccess
in interface RowRecogPartitionState
public Iterator<RowRecogNFAStateEntry> getCurrentStatesIterator()
getCurrentStatesIterator
in interface RowRecogPartitionState
public void setCurrentStates(List<RowRecogNFAStateEntry> currentStates)
setCurrentStates
in interface RowRecogPartitionState
currentStates
- state to setpublic Object getOptionalKeys()
getOptionalKeys
in interface RowRecogPartitionState
public void removeEventFromPrev(EventBean[] oldEvents)
oldEvents
- to removepublic void removeEventFromPrev(EventBean oldEvent)
oldEvent
- to removepublic int removeEventFromState(EventBean oldEvent)
oldEvent
- to removepublic int getNumStates()
getNumStates
in interface RowRecogPartitionState
public void clearCurrentStates()
public List<RowRecogNFAStateEntry> getCurrentStatesForPrint()
getCurrentStatesForPrint
in interface RowRecogPartitionState
public boolean isEmptyCurrentState()
isEmptyCurrentState
in interface RowRecogPartitionState
public static List<RowRecogNFAStateEntry> removeEventFromState(EventBean oldEvent, Iterator<RowRecogNFAStateEntry> states)
Copyright © 2005–2018. All rights reserved.