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(RegexPartitionState singletonState, boolean hasInterval)
          Ctor.
RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter, boolean hasInterval)
          Ctor.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPartitionStateRepoNoGroup

public RegexPartitionStateRepoNoGroup(RegexPartitionState singletonState,
                                      boolean hasInterval)
Ctor.

Parameters:
singletonState - state
hasInterval - true for interval

RegexPartitionStateRepoNoGroup

public RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter,
                                      boolean hasInterval)
Ctor.

Parameters:
getter - "prev" getter
hasInterval - true for interval
Method Detail

removeState

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

copyForIterate

public RegexPartitionStateRepo copyForIterate()
Copy state for iteration.

Specified by:
copyForIterate in interface RegexPartitionStateRepo
Returns:
copy

removeOld

public void 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

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