com.espertech.esper.filter
Class FilterSpecCompilerMakeParamUtil
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterSpecCompilerMakeParamUtil
public FilterSpecCompilerMakeParamUtil()
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 atarrayEventTypes
- @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)