public class RegexPartitionStateRandomAccessImpl extends Object implements RegexPartitionStateRandomAccess
Constructor and Description |
---|
RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
existingEventPrepare(EventBean newEvent)
Prepare relative to existing event, for iterating.
|
EventBean |
getPreviousEvent(int assignedRelativeIndex)
Returns a previous event.
|
boolean |
isEmpty()
Returns true for empty collection.
|
void |
newEventPrepare(EventBean newEvent)
Add new event.
|
void |
remove(EventBean oldEvent)
Remove event.
|
void |
remove(EventBean[] oldEvents)
Remove events.
|
public RegexPartitionStateRandomAccessImpl(RegexPartitionStateRandomAccessGetter getter)
getter
- for accesspublic void newEventPrepare(EventBean newEvent)
newEventPrepare
in interface RegexPartitionStateRandomAccess
newEvent
- to addpublic void existingEventPrepare(EventBean newEvent)
existingEventPrepare
in interface RegexPartitionStateRandomAccess
newEvent
- to consider for indexpublic EventBean getPreviousEvent(int assignedRelativeIndex)
getPreviousEvent
in interface RegexPartitionStateRandomAccess
assignedRelativeIndex
- indexpublic void remove(EventBean[] oldEvents)
remove
in interface RegexPartitionStateRandomAccess
oldEvents
- to removepublic void remove(EventBean oldEvent)
remove
in interface RegexPartitionStateRandomAccess
oldEvent
- to removepublic boolean isEmpty()
isEmpty
in interface RegexPartitionStateRandomAccess