com.espertech.esper.rowregex
Class RegexPartitionStateRepoScheduleStateImpl

java.lang.Object
  extended by com.espertech.esper.rowregex.RegexPartitionStateRepoScheduleStateImpl
All Implemented Interfaces:
RegexPartitionStateRepoScheduleState

public class RegexPartitionStateRepoScheduleStateImpl
extends java.lang.Object
implements RegexPartitionStateRepoScheduleState


Constructor Summary
RegexPartitionStateRepoScheduleStateImpl(RegexPartitionTerminationStateComparator terminationStateCompare)
           
 
Method Summary
 boolean containsKey(long matchBeginTime)
           
 boolean findRemoveAddToList(long matchBeginTime, RegexNFAStateEntry state, java.util.List<RegexNFAStateEntry> foundStates)
          Find and remove operation, wherein removed items are added to the found list, returning an indicator whether the item was found and removed
 long firstKey()
           
 java.lang.Object get(long matchBeginTime)
           
 boolean isEmpty()
           
 boolean putOrAdd(long matchBeginTime, RegexNFAStateEntry state)
          Add entry returning true if the key did not exist.
 void removeAddRemoved(long matchBeginTime, java.util.List<RegexNFAStateEntry> foundStates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPartitionStateRepoScheduleStateImpl

public RegexPartitionStateRepoScheduleStateImpl(RegexPartitionTerminationStateComparator terminationStateCompare)
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface RegexPartitionStateRepoScheduleState

putOrAdd

public boolean putOrAdd(long matchBeginTime,
                        RegexNFAStateEntry state)
Description copied from interface: RegexPartitionStateRepoScheduleState
Add entry returning true if the key did not exist.

Specified by:
putOrAdd in interface RegexPartitionStateRepoScheduleState
Parameters:
matchBeginTime - key
state - entry
Returns:
indicator

get

public java.lang.Object get(long matchBeginTime)

firstKey

public long firstKey()
Specified by:
firstKey in interface RegexPartitionStateRepoScheduleState

removeAddRemoved

public void removeAddRemoved(long matchBeginTime,
                             java.util.List<RegexNFAStateEntry> foundStates)
Specified by:
removeAddRemoved in interface RegexPartitionStateRepoScheduleState

containsKey

public boolean containsKey(long matchBeginTime)
Specified by:
containsKey in interface RegexPartitionStateRepoScheduleState

findRemoveAddToList

public boolean findRemoveAddToList(long matchBeginTime,
                                   RegexNFAStateEntry state,
                                   java.util.List<RegexNFAStateEntry> foundStates)
Description copied from interface: RegexPartitionStateRepoScheduleState
Find and remove operation, wherein removed items are added to the found list, returning an indicator whether the item was found and removed

Specified by:
findRemoveAddToList in interface RegexPartitionStateRepoScheduleState
Parameters:
matchBeginTime - key
state - entry
foundStates - list to be added to
Returns:
indicator whether any item was found and removed

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