Class PriorEventViewRelAccess
java.lang.Object
com.espertech.esper.common.internal.view.prior.PriorEventViewRelAccess
- All Implemented Interfaces:
RelativeAccessByEventNIndex
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.view.access.RelativeAccessByEventNIndex
EPTYPE
-
Constructor Summary
ConstructorDescriptionPriorEventViewRelAccess
(RelativeAccessByEventNIndex buffer, int relativeIndex) Ctor. -
Method Summary
Modifier and TypeMethodDescriptiongetRelativeToEnd
(int index) getRelativeToEvent
(EventBean theEvent, int prevIndex) Returns the prior event to the given event counting back the number of events as supplied by index.int
-
Constructor Details
-
PriorEventViewRelAccess
Ctor.- Parameters:
buffer
- is the buffer to accesrelativeIndex
- is the index to pull out
-
-
Method Details
-
getRelativeToEvent
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 interfaceRelativeAccessByEventNIndex
- Parameters:
theEvent
- is the event to count back fromprevIndex
- is the number of events to go back- Returns:
- event
-
getRelativeToEnd
- Specified by:
getRelativeToEnd
in interfaceRelativeAccessByEventNIndex
-
getWindowToEvent
- Specified by:
getWindowToEvent
in interfaceRelativeAccessByEventNIndex
-
getWindowToEventCollReadOnly
- Specified by:
getWindowToEventCollReadOnly
in interfaceRelativeAccessByEventNIndex
-
getWindowToEventCount
public int getWindowToEventCount()- Specified by:
getWindowToEventCount
in interfaceRelativeAccessByEventNIndex
-