com.espertech.esper.rowregex
Class RegexPartitionStateRepoNoGroup

java.lang.Object
  extended by com.espertech.esper.rowregex.RegexPartitionStateRepoNoGroup
All Implemented Interfaces:
RegexPartitionStateRepo

public class RegexPartitionStateRepoNoGroup
extends java.lang.Object
implements RegexPartitionStateRepo

State for when no partitions (single partition) is required.


Constructor Summary
RegexPartitionStateRepoNoGroup(RegexPartitionStateImpl singletonState)
          Ctor.
RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter, boolean keepScheduleState, RegexPartitionTerminationStateComparator terminationStateCompare)
          Ctor.
 
Method Summary
 void accept(EventRowRegexNFAViewServiceVisitor visitor)
           
 RegexPartitionStateRepo copyForIterate(boolean forOutOfOrderReprocessing)
          Copy state for iteration.
 void destroy()
           
 RegexPartitionStateRepoScheduleState getScheduleState()
           
 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.
 int getStateCount()
           
 int incrementAndGetEventSequenceNum()
           
 boolean isPartitioned()
           
 int 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)
           
 void setEventSequenceNum(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPartitionStateRepoNoGroup

public RegexPartitionStateRepoNoGroup(RegexPartitionStateImpl singletonState)
Ctor.

Parameters:
singletonState - state

RegexPartitionStateRepoNoGroup

public RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter,
                                      boolean keepScheduleState,
                                      RegexPartitionTerminationStateComparator terminationStateCompare)
Ctor.

Parameters:
getter - "prev" getter
Method Detail

incrementAndGetEventSequenceNum

public int incrementAndGetEventSequenceNum()
Specified by:
incrementAndGetEventSequenceNum in interface RegexPartitionStateRepo

setEventSequenceNum

public void setEventSequenceNum(int num)
Specified by:
setEventSequenceNum in interface RegexPartitionStateRepo

getScheduleState

public RegexPartitionStateRepoScheduleState getScheduleState()
Specified by:
getScheduleState in interface RegexPartitionStateRepo

removeState

public void removeState(java.lang.Object partitionKey)
Specified by:
removeState in interface RegexPartitionStateRepo

copyForIterate

public RegexPartitionStateRepo copyForIterate(boolean forOutOfOrderReprocessing)
Copy state for iteration.

Specified by:
copyForIterate in interface RegexPartitionStateRepo
Returns:
copy

removeOld

public int removeOld(EventBean[] oldEvents,
                     boolean isEmpty,
                     boolean[] found)
Description copied from interface: RegexPartitionStateRepo
Remove old events from the state, applicable for "prev" function and partial NFA state.

Specified by:
removeOld in interface RegexPartitionStateRepo
Parameters:
oldEvents - to remove
isEmpty - indicator if there are not matches
found - indicator if any partial matches exist to be deleted

getState

public RegexPartitionState getState(EventBean theEvent,
                                    boolean collect)
Description copied from interface: RegexPartitionStateRepo
Return state for event or create state if not found.

Specified by:
getState in interface RegexPartitionStateRepo
Parameters:
theEvent - to look up
collect - true if a collection of unused state can occur
Returns:
state

getState

public RegexPartitionState getState(java.lang.Object key)
Description copied from interface: RegexPartitionStateRepo
Return state for key or create state if not found.

Specified by:
getState in interface RegexPartitionStateRepo
Parameters:
key - to look up
Returns:
state

accept

public void accept(EventRowRegexNFAViewServiceVisitor visitor)
Specified by:
accept in interface RegexPartitionStateRepo

isPartitioned

public boolean isPartitioned()
Specified by:
isPartitioned in interface RegexPartitionStateRepo

getStateCount

public int getStateCount()
Specified by:
getStateCount in interface RegexPartitionStateRepo

destroy

public void destroy()
Specified by:
destroy in interface RegexPartitionStateRepo

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com