Class RowRecogMultimatchState
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.core.RowRecogMultimatchState
State holder for matches, backed by an array, for fast copying and writing.
-
Constructor Summary
ConstructorDescriptionRowRecogMultimatchState
(int count, EventBean[] events) RowRecogMultimatchState
(EventBean theEvent) Ctor.Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an event.boolean
containsEvent
(EventBean theEvent) Determines if an event is in the collection.Returns the raw buffer.int
getCount()
Returns the count of events.Returns the buffer sized to only the contained events, and shrinks the event array unless it is empty
-
Constructor Details
-
RowRecogMultimatchState
-
RowRecogMultimatchState
Ctor.- Parameters:
theEvent
- first event to hold
-
RowRecogMultimatchState
Ctor.- Parameters:
state
- to copy
-
-
Method Details
-
add
Add an event.- Parameters:
theEvent
- to add
-
getCount
public int getCount()Returns the count of events.- Returns:
- count
-
getBuffer
Returns the raw buffer.- Returns:
- buffer
-
containsEvent
Determines if an event is in the collection.- Parameters:
theEvent
- to check- Returns:
- indicator
-
getShrinkEventArray
Returns the buffer sized to only the contained events, and shrinks the event array unless it is empty- Returns:
- events
-