java.lang.Object
com.espertech.esper.common.internal.epl.rowrecog.core.RowRecogHelper

public class RowRecogHelper extends Object
Helper for match recognize.
  • Field Details

  • Constructor Details

    • RowRecogHelper

      public RowRecogHelper()
  • Method Details

    • recursiveFindRegexService

      public static RowRecogNFAViewService recursiveFindRegexService(Viewable top)
    • recursiveInspectVariables

      public static void recursiveInspectVariables(RowRecogExprNode parent, boolean isMultiple, Set<String> variablesSingle, Set<String> variablesMultiple)
      Inspect variables recursively.
      Parameters:
      parent - parent regex expression node
      isMultiple - if the variable in the stack is multiple of single
      variablesSingle - single variables list
      variablesMultiple - 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 for
      variableDefinitions - each variable and its expressions
      variableStreams - variable name and its stream number
      exprRequiresMultimatchState - indicator whether multi-match state required
      Returns:
      strand of regex state nodes
    • determineVisibility

      public static Map<String,Set<String>> determineVisibility(RowRecogExprNode pattern)