Class RelativeAccessByEventNIndexGetterImpl
java.lang.Object
com.espertech.esper.common.internal.view.access.RelativeAccessByEventNIndexGetterImpl
- All Implemented Interfaces:
RelativeAccessByEventNIndexGetter
,IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver
,PreviousGetterStrategy
public class RelativeAccessByEventNIndexGetterImpl
extends Object
implements IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver, RelativeAccessByEventNIndexGetter, PreviousGetterStrategy
Provides random-access into window contents by event and index as a combination.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.view.previous.PreviousGetterStrategy
EMPTY_ARRAY, EPTYPE
Fields inherited from interface com.espertech.esper.common.internal.view.access.RelativeAccessByEventNIndexGetter
EPTYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessor
(EventBean theEvent) Returns the access into window contents given an event.void
updated
(RelativeAccessByEventNIndex iStreamRelativeAccess, EventBean[] newData) Callback to indicate an update.
-
Constructor Details
-
RelativeAccessByEventNIndexGetterImpl
public RelativeAccessByEventNIndexGetterImpl()
-
-
Method Details
-
updated
Description copied from interface:IStreamRelativeAccess.IStreamRelativeAccessUpdateObserver
Callback to indicate an update.- Specified by:
updated
in interfaceIStreamRelativeAccess.IStreamRelativeAccessUpdateObserver
- Parameters:
iStreamRelativeAccess
- is the collectionnewData
- is the new data available
-
getAccessor
Returns the access into window contents given an event.- Specified by:
getAccessor
in interfaceRelativeAccessByEventNIndexGetter
- Parameters:
theEvent
- to which the method returns relative access from- Returns:
- buffer
-
getStrategy
- Specified by:
getStrategy
in interfacePreviousGetterStrategy
-