Class RowRecogHelper
java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.core.RowRecogHelper
Helper for match recognize.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static RowRecogNFAStrandResult
buildStartStates
(RowRecogExprNode parent, Map<String, ExprNode> variableDefinitions, Map<String, Pair<Integer, Boolean>> variableStreams, boolean[] exprRequiresMultimatchState) Build a list of start states from the parent node.determineVisibility
(RowRecogExprNode pattern) static RowRecogNFAViewService
static void
recursiveInspectVariables
(RowRecogExprNode parent, boolean isMultiple, Set<String> variablesSingle, Set<String> variablesMultiple) Inspect variables recursively.
-
Field Details
-
END_STATE_COMPARATOR
-
-
Constructor Details
-
RowRecogHelper
public RowRecogHelper()
-
-
Method Details
-
recursiveFindRegexService
-
recursiveInspectVariables
public static void recursiveInspectVariables(RowRecogExprNode parent, boolean isMultiple, Set<String> variablesSingle, Set<String> variablesMultiple) Inspect variables recursively.- Parameters:
parent
- parent regex expression nodeisMultiple
- if the variable in the stack is multiple of singlevariablesSingle
- single variables listvariablesMultiple
- group variables list
-
buildStartStates
protected static RowRecogNFAStrandResult buildStartStates(RowRecogExprNode parent, Map<String, ExprNode> variableDefinitions, Map<String, Pair<Integer, Boolean>> variableStreams, boolean[] exprRequiresMultimatchState) Build a list of start states from the parent node.- Parameters:
parent
- to build start state forvariableDefinitions
- each variable and its expressionsvariableStreams
- variable name and its stream numberexprRequiresMultimatchState
- indicator whether multi-match state required- Returns:
- strand of regex state nodes
-
determineVisibility
-