Class RowRecogNFAStateEntry
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.nfa.RowRecogNFAStateEntry
State for a partial NFA match.
-
Constructor Summary
ConstructorDescriptionRowRecogNFAStateEntry
(int matchBeginEventSeqNo, long matchBeginEventTime, RowRecogNFAState state, EventBean[] eventsPerStream, int[] greedycountPerState, RowRecogMultimatchState[] optionalMultiMatches, Object partitionKey) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the single-variable matches.int[]
Returns the count of greedy matches per state.int
Returns the event number of the first matching event.long
Returns the time of the first matching event.int
Returns the match end event number.Returns the multirow-variable matches, if any.Returns the partition key.getState()
Returns the partial matches.void
setMatchEndEventSeqNo
(int matchEndEventSeqNo) Sets the match end event number.void
setState
(RowRecogNFAState state) toString()
-
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 startedmatchBeginEventTime
- the time the first match occuredstate
- the current match stateeventsPerStream
- events for each single-match variablegreedycountPerState
- number of greedy matches over all variablesoptionalMultiMatches
- matches for multirow-variablespartitionKey
- 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
Returns the partial matches.- Returns:
- state
-
getEventsPerStream
Returns the single-variable matches.- Returns:
- match events
-
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
Returns the partition key.- Returns:
- key
-
toString
-
setState
-