com.espertech.esper.rowregex
Class MultimatchState

java.lang.Object
  extended by com.espertech.esper.rowregex.MultimatchState

public class MultimatchState
extends java.lang.Object

State holder for matches, backed by an array, for fast copying and writing.


Constructor Summary
MultimatchState(EventBean theEvent)
          Ctor.
MultimatchState(int count, EventBean[] events)
           
MultimatchState(MultimatchState state)
          Ctor.
 
Method Summary
 void add(EventBean theEvent)
          Add an event.
 boolean containsEvent(EventBean theEvent)
          Determines if an event is in the collection.
 EventBean[] getBuffer()
          Returns the raw buffer.
 int getCount()
          Returns the count of events.
 EventBean[] getShrinkEventArray()
          Returns the buffer sized to only the contained events, and shrinks the event array unless it is empty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultimatchState

public MultimatchState(int count,
                       EventBean[] events)

MultimatchState

public MultimatchState(EventBean theEvent)
Ctor.

Parameters:
theEvent - first event to hold

MultimatchState

public MultimatchState(MultimatchState state)
Ctor.

Parameters:
state - to copy
Method Detail

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

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com