Class RowRecogNFAStateEntry

java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.nfa.RowRecogNFAStateEntry

public class RowRecogNFAStateEntry extends Object
State for a partial NFA match.
  • Constructor Details

    • RowRecogNFAStateEntry

      public RowRecogNFAStateEntry(int matchBeginEventSeqNo, long matchBeginEventTime, RowRecogNFAState state, EventBean[] eventsPerStream, int[] greedycountPerState, RowRecogMultimatchState[] optionalMultiMatches, 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 Details

    • 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 RowRecogNFAState getState()
      Returns the partial matches.
      Returns:
      state
    • getEventsPerStream

      public EventBean[] getEventsPerStream()
      Returns the single-variable matches.
      Returns:
      match events
    • getOptionalMultiMatches

      public RowRecogMultimatchState[] 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 Object getPartitionKey()
      Returns the partition key.
      Returns:
      key
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setState

      public void setState(RowRecogNFAState state)