com.espertech.esper.filter
Class FilterSpecCompilerMakeParamUtil

java.lang.Object
  extended by com.espertech.esper.filter.FilterSpecCompilerMakeParamUtil

public final class FilterSpecCompilerMakeParamUtil
extends java.lang.Object

Helper to compile (validate and optimize) filter expressions as used in pattern and filter-based streams.


Constructor Summary
FilterSpecCompilerMakeParamUtil()
           
 
Method Summary
protected static FilterSpecParam makeFilterParam(ExprNode constituent, java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes, ExprEvaluatorContext exprEvaluatorContext, java.lang.String statementName)
          For a given expression determine if this is optimizable and create the filter parameter representing the expression, or null if not optimizable.
static ExprNode rewriteOrToInIfApplicable(ExprNode constituent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterSpecCompilerMakeParamUtil

public FilterSpecCompilerMakeParamUtil()
Method Detail

makeFilterParam

protected static FilterSpecParam makeFilterParam(ExprNode constituent,
                                                 java.util.LinkedHashMap<java.lang.String,Pair<EventType,java.lang.String>> arrayEventTypes,
                                                 ExprEvaluatorContext exprEvaluatorContext,
                                                 java.lang.String statementName)
                                          throws ExprValidationException
For a given expression determine if this is optimizable and create the filter parameter representing the expression, or null if not optimizable.

Parameters:
constituent - is the expression to look at
arrayEventTypes - @return filter parameter representing the expression, or null
Returns:
FilterSpecParam filter param
Throws:
ExprValidationException - if the expression is invalid

rewriteOrToInIfApplicable

public static ExprNode rewriteOrToInIfApplicable(ExprNode constituent)

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