com.espertech.esper.rowregex
Class EventRowRegexHelper

java.lang.Object
  extended by com.espertech.esper.rowregex.EventRowRegexHelper

public class EventRowRegexHelper
extends java.lang.Object

Helper for match recognize.


Field Summary
protected static java.util.Comparator<RegexNFAStateEntry> END_STATE_COMPARATOR
           
 
Constructor Summary
EventRowRegexHelper()
           
 
Method Summary
static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> determineVisibility(RowRegexExprNode pattern)
           
protected static RegexNFAStrandResult recursiveBuildStartStates(RowRegexExprNode parent, java.util.Map<java.lang.String,ExprNode> variableDefinitions, java.util.Map<java.lang.String,Pair<java.lang.Integer,java.lang.Boolean>> variableStreams, boolean[] exprRequiresMultimatchState)
          Build a list of start states from the parent node.
static EventRowRegexNFAViewService recursiveFindRegexService(Viewable top)
           
protected static void recursiveInspectVariables(RowRegexExprNode parent, boolean isMultiple, java.util.Set<java.lang.String> variablesSingle, java.util.Set<java.lang.String> variablesMultiple)
          Inspect variables recursively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

END_STATE_COMPARATOR

protected static final java.util.Comparator<RegexNFAStateEntry> END_STATE_COMPARATOR
Constructor Detail

EventRowRegexHelper

public EventRowRegexHelper()
Method Detail

recursiveFindRegexService

public static EventRowRegexNFAViewService recursiveFindRegexService(Viewable top)

recursiveInspectVariables

protected static void recursiveInspectVariables(RowRegexExprNode parent,
                                                boolean isMultiple,
                                                java.util.Set<java.lang.String> variablesSingle,
                                                java.util.Set<java.lang.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

recursiveBuildStartStates

protected static RegexNFAStrandResult recursiveBuildStartStates(RowRegexExprNode parent,
                                                                java.util.Map<java.lang.String,ExprNode> variableDefinitions,
                                                                java.util.Map<java.lang.String,Pair<java.lang.Integer,java.lang.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
Returns:
strand of regex state nodes

determineVisibility

public static java.util.Map<java.lang.String,java.util.Set<java.lang.String>> determineVisibility(RowRegexExprNode pattern)

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