com.espertech.esper.rowregex
Class RegexPartitionStateRandomAccessImpl

java.lang.Object
  extended by com.espertech.esper.rowregex.RegexPartitionStateRandomAccessImpl
All Implemented Interfaces:
RegexPartitionStateRandomAccess

public class RegexPartitionStateRandomAccessImpl
extends java.lang.Object
implements RegexPartitionStateRandomAccess

"Prev" state for random access to event history.


Constructor Summary
RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter)
          Ctor.
 
Method Summary
 void existingEventPrepare(EventBean newEvent)
          Prepare relative to existing event, for iterating.
 EventBean getPreviousEvent(int assignedRelativeIndex)
          Returns a previous event.
 boolean isEmpty()
          Returns true for empty collection.
 void newEventPrepare(EventBean newEvent)
          Add new event.
 void remove(EventBean oldEvent)
          Remove event.
 void remove(EventBean[] oldEvents)
          Remove events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPartitionStateRandomAccessImpl

public RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter)
Ctor.

Parameters:
getter - for access
Method Detail

newEventPrepare

public void newEventPrepare(EventBean newEvent)
Add new event.

Parameters:
newEvent - to add

existingEventPrepare

public void existingEventPrepare(EventBean newEvent)
Prepare relative to existing event, for iterating.

Parameters:
newEvent - to consider for index

getPreviousEvent

public EventBean getPreviousEvent(int assignedRelativeIndex)
Returns a previous event. Always immediatly preceded by #newEventPrepare.

Specified by:
getPreviousEvent in interface RegexPartitionStateRandomAccess
Parameters:
assignedRelativeIndex - index
Returns:
event

remove

public void remove(EventBean[] oldEvents)
Remove events.

Parameters:
oldEvents - to remove

remove

public void remove(EventBean oldEvent)
Remove event.

Parameters:
oldEvent - to remove

isEmpty

public boolean isEmpty()
Returns true for empty collection.

Returns:
indicator if empty

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