com.espertech.esper.rowregex
Class RegexNFAStateEntry

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

public class RegexNFAStateEntry
extends java.lang.Object

State for a partial NFA match.


Constructor Summary
RegexNFAStateEntry(int matchBeginEventSeqNo, long matchBeginEventTime, RegexNFAState state, EventBean[] eventsPerStream, int[] greedycountPerState, MultimatchState[] optionalMultiMatches, java.lang.Object partitionKey)
          Ctor.
 
Method Summary
 EventBean[] getEventsPerStream()
          Returns the single-variable matches.
 int[] getGreedycountPerState()
          Returns the count of greedy matches per state.
 int getMatchBeginEventSeqNo()
          Returns the event number of the first matching event.
 long getMatchBeginEventTime()
          Returns the time of the first matching event.
 int getMatchEndEventSeqNo()
          Returns the match end event number.
 MultimatchState[] getOptionalMultiMatches()
          Returns the multirow-variable matches, if any.
 java.lang.Object getPartitionKey()
          Returns the partition key.
 RegexNFAState getState()
          Returns the partial matches.
 void setMatchEndEventSeqNo(int matchEndEventSeqNo)
          Sets the match end event number.
 void setState(RegexNFAState state)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexNFAStateEntry

public RegexNFAStateEntry(int matchBeginEventSeqNo,
                          long matchBeginEventTime,
                          RegexNFAState state,
                          EventBean[] eventsPerStream,
                          int[] greedycountPerState,
                          MultimatchState[] optionalMultiMatches,
                          java.lang.Object partitionKey)
Ctor.

Parameters:
matchBeginEventSeqNo - the event number where the match started
matchBeginEventTime - the time the first match occured
state - the current match state
eventsPerStream - events for each single-match variable
greedycountPerState - number of greedy matches over all variables
optionalMultiMatches - matches for multirow-variables
partitionKey - key of partition
Method Detail

getMatchBeginEventSeqNo

public int getMatchBeginEventSeqNo()
Returns the event number of the first matching event.

Returns:
event number

getMatchBeginEventTime

public long getMatchBeginEventTime()
Returns the time of the first matching event.

Returns:
time

getState

public RegexNFAState getState()
Returns the partial matches.

Returns:
state

getEventsPerStream

public EventBean[] getEventsPerStream()
Returns the single-variable matches.

Returns:
match events

getOptionalMultiMatches

public MultimatchState[] getOptionalMultiMatches()
Returns the multirow-variable matches, if any.

Returns:
matches

getGreedycountPerState

public int[] getGreedycountPerState()
Returns the count of greedy matches per state.

Returns:
greedy counts

setMatchEndEventSeqNo

public void setMatchEndEventSeqNo(int matchEndEventSeqNo)
Sets the match end event number.

Parameters:
matchEndEventSeqNo - match end event num

getMatchEndEventSeqNo

public int getMatchEndEventSeqNo()
Returns the match end event number.

Returns:
num

getPartitionKey

public java.lang.Object getPartitionKey()
Returns the partition key.

Returns:
key

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setState

public void setState(RegexNFAState state)

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