com.espertech.esper.rowregex
Class RegexNFAStateOneToMany

java.lang.Object
  extended by com.espertech.esper.rowregex.RegexNFAStateBase
      extended by com.espertech.esper.rowregex.RegexNFAStateOneToMany
All Implemented Interfaces:
RegexNFAState

public class RegexNFAStateOneToMany
extends RegexNFAStateBase
implements RegexNFAState

The '+' state in the regex NFA states.


Constructor Summary
RegexNFAStateOneToMany(java.lang.String nodeNum, java.lang.String variableName, int streamNum, boolean multiple, boolean isGreedy, ExprNode exprNode, boolean exprRequiresMultimatchState)
          Ctor.
 
Method Summary
 boolean isExprRequiresMultimatchState()
          Whether or not the match-expression requires multimatch state
 boolean matches(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
          Evaluate a match.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.rowregex.RegexNFAStateBase
addState, getNextStates, getNodeNumFlat, getNodeNumNested, getStreamNum, getVariableName, isGreedy, isMultiple, setNodeNumFlat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.rowregex.RegexNFAState
getNextStates, getNodeNumFlat, getNodeNumNested, getStreamNum, getVariableName, isGreedy, isMultiple
 

Constructor Detail

RegexNFAStateOneToMany

public RegexNFAStateOneToMany(java.lang.String nodeNum,
                              java.lang.String variableName,
                              int streamNum,
                              boolean multiple,
                              boolean isGreedy,
                              ExprNode exprNode,
                              boolean exprRequiresMultimatchState)
Ctor.

Parameters:
nodeNum - node num
variableName - variable name
streamNum - stream number
multiple - true for multiple matches
isGreedy - true for greedy
exprNode - filter expression
Method Detail

matches

public boolean matches(EventBean[] eventsPerStream,
                       ExprEvaluatorContext exprEvaluatorContext)
Description copied from interface: RegexNFAState
Evaluate a match.

Specified by:
matches in interface RegexNFAState
Parameters:
eventsPerStream - variabele values
exprEvaluatorContext - expression evaluation context
Returns:
match indicator

toString

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

isExprRequiresMultimatchState

public boolean isExprRequiresMultimatchState()
Description copied from interface: RegexNFAState
Whether or not the match-expression requires multimatch state

Specified by:
isExprRequiresMultimatchState in interface RegexNFAState
Returns:
indicator

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