com.espertech.esper.view.internal
Class PriorEventViewRelAccess
java.lang.Object
com.espertech.esper.view.internal.PriorEventViewRelAccess
- All Implemented Interfaces:
- RelativeAccessByEventNIndex
public class PriorEventViewRelAccess
- extends java.lang.Object
- implements RelativeAccessByEventNIndex
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorEventViewRelAccess
public PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer,
int relativeIndex)
- Ctor.
- Parameters:
buffer
- is the buffer to accesrelativeIndex
- is the index to pull out
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 fromprevIndex
- 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