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(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.util.Collection<EventBean> getWindowToEventCollReadOnly()
           
 int getWindowToEventCount()
           
 

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(int index)

getWindowToEvent

java.util.Iterator<EventBean> getWindowToEvent()

getWindowToEventCollReadOnly

java.util.Collection<EventBean> getWindowToEventCollReadOnly()

getWindowToEventCount

int getWindowToEventCount()

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