Class RowRecogStateRandomAccessImpl
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.state.RowRecogStateRandomAccessImpl
- All Implemented Interfaces:
RowRecogStateRandomAccess
"Prev" state for random access to event history.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.rowrecog.state.RowRecogStateRandomAccess
EPTYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
existingEventPrepare
(EventBean newEvent) Prepare relative to existing event, for iterating.getPreviousEvent
(int assignedRelativeIndex) Returns a previous event.boolean
isEmpty()
Returns true for empty collection.void
newEventPrepare
(EventBean newEvent) Add new event.void
Remove event.void
Remove events.
-
Constructor Details
-
RowRecogStateRandomAccessImpl
Ctor.- Parameters:
getter
- for access
-
-
Method Details
-
newEventPrepare
Add new event.- Specified by:
newEventPrepare
in interfaceRowRecogStateRandomAccess
- Parameters:
newEvent
- to add
-
existingEventPrepare
Prepare relative to existing event, for iterating.- Specified by:
existingEventPrepare
in interfaceRowRecogStateRandomAccess
- Parameters:
newEvent
- to consider for index
-
getPreviousEvent
Returns a previous event. Always immediatly preceded by #newEventPrepare.- Specified by:
getPreviousEvent
in interfaceRowRecogStateRandomAccess
- Parameters:
assignedRelativeIndex
- index- Returns:
- event
-
remove
Remove events.- Specified by:
remove
in interfaceRowRecogStateRandomAccess
- Parameters:
oldEvents
- to remove
-
remove
Remove event.- Specified by:
remove
in interfaceRowRecogStateRandomAccess
- Parameters:
oldEvent
- to remove
-
isEmpty
public boolean isEmpty()Returns true for empty collection.- Specified by:
isEmpty
in interfaceRowRecogStateRandomAccess
- Returns:
- indicator if empty
-