com.espertech.esper.view.window
Interface RelativeAccessByEventNIndex

All Known Implementing Classes:
IStreamRelativeAccess, PriorEventBufferMulti, PriorEventBufferSingle, PriorEventViewRelAccess

public interface RelativeAccessByEventNIndex

Provides access to prior events given an event from which to count back, and an index to look at.


Method Summary
 EventBean getRelativeToEnd(EventBean theEvent, int index)
           
 EventBean getRelativeToEvent(EventBean theEvent, int index)
          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)
           
 

Method Detail

getRelativeToEvent

EventBean getRelativeToEvent(EventBean theEvent,
                             int index)
Returns the prior event to the given event counting back the number of events as supplied by index.

Parameters:
theEvent - is the event to count back from
index - is the number of events to go back
Returns:
event

getRelativeToEnd

EventBean getRelativeToEnd(EventBean theEvent,
                           int index)

getWindowToEvent

java.util.Iterator<EventBean> getWindowToEvent(java.lang.Object evalEvent)

getWindowToEventCollReadOnly

java.util.Collection<EventBean> getWindowToEventCollReadOnly(java.lang.Object evalEvent)

getWindowToEventCount

int getWindowToEventCount(EventBean evalEvent)

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