com.espertech.esper.view.internal
Class PriorEventViewRelAccess

java.lang.Object
  extended by com.espertech.esper.view.internal.PriorEventViewRelAccess
All Implemented Interfaces:
RelativeAccessByEventNIndex

public class PriorEventViewRelAccess
extends java.lang.Object
implements RelativeAccessByEventNIndex


Constructor Summary
PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer, int relativeIndex)
          Ctor.
 
Method Summary
 EventBean getRelativeToEnd(EventBean theEvent, int index)
           
 EventBean getRelativeToEvent(EventBean theEvent, int prevIndex)
          Returns the prior event to the given event counting back the number of events as supplied by index.
 java.util.Iterator<EventBean> getWindowToEvent(java.lang.Object evalEvent)
           
 java.util.Collection<EventBean> getWindowToEventCollReadOnly(java.lang.Object evalEvent)
           
 int getWindowToEventCount(EventBean evalEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorEventViewRelAccess

public PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer,
                               int relativeIndex)
Ctor.

Parameters:
buffer - is the buffer to acces
relativeIndex - is the index to pull out
Method Detail

getRelativeToEvent

public EventBean getRelativeToEvent(EventBean theEvent,
                                    int prevIndex)
Description copied from interface: RelativeAccessByEventNIndex
Returns the prior event to the given event counting back the number of events as supplied by index.

Specified by:
getRelativeToEvent in interface RelativeAccessByEventNIndex
Parameters:
theEvent - is the event to count back from
prevIndex - is the number of events to go back
Returns:
event

getRelativeToEnd

public EventBean getRelativeToEnd(EventBean theEvent,
                                  int index)
Specified by:
getRelativeToEnd in interface RelativeAccessByEventNIndex

getWindowToEvent

public java.util.Iterator<EventBean> getWindowToEvent(java.lang.Object evalEvent)
Specified by:
getWindowToEvent in interface RelativeAccessByEventNIndex

getWindowToEventCollReadOnly

public java.util.Collection<EventBean> getWindowToEventCollReadOnly(java.lang.Object evalEvent)
Specified by:
getWindowToEventCollReadOnly in interface RelativeAccessByEventNIndex

getWindowToEventCount

public int getWindowToEventCount(EventBean evalEvent)
Specified by:
getWindowToEventCount in interface RelativeAccessByEventNIndex

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