Class RowRecogMultimatchState

java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.core.RowRecogMultimatchState

public class RowRecogMultimatchState extends Object
State holder for matches, backed by an array, for fast copying and writing.
  • Constructor Details

    • RowRecogMultimatchState

      public RowRecogMultimatchState(int count, EventBean[] events)
    • RowRecogMultimatchState

      public RowRecogMultimatchState(EventBean theEvent)
      Ctor.
      Parameters:
      theEvent - first event to hold
    • RowRecogMultimatchState

      public RowRecogMultimatchState(RowRecogMultimatchState state)
      Ctor.
      Parameters:
      state - to copy
  • Method Details

    • add

      public void add(EventBean theEvent)
      Add an event.
      Parameters:
      theEvent - to add
    • getCount

      public int getCount()
      Returns the count of events.
      Returns:
      count
    • getBuffer

      public EventBean[] getBuffer()
      Returns the raw buffer.
      Returns:
      buffer
    • containsEvent

      public boolean containsEvent(EventBean theEvent)
      Determines if an event is in the collection.
      Parameters:
      theEvent - to check
      Returns:
      indicator
    • getShrinkEventArray

      public EventBean[] getShrinkEventArray()
      Returns the buffer sized to only the contained events, and shrinks the event array unless it is empty
      Returns:
      events