|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterSpecCompiler
public final class FilterSpecCompiler
Helper to compile (validate and optimize) filter expressions as used in pattern and filter-based streams.
Field Summary | |
---|---|
static String |
PROPERTY_NAME_BOOLEAN_EXPRESSION
Assigned for filter parameters that are based on boolean expression and not on any particular property name. |
Constructor Summary | |
---|---|
FilterSpecCompiler()
|
Method Summary | |
---|---|
protected static FilterSpecParam |
makeFilterParam(ExprNode constituent)
For a given expression determine if this is optimizable and create the filter parameter representing the expression, or null if not optimizable. |
static FilterSpecCompiled |
makeFilterSpec(EventType eventType,
List<ExprNode> filterExpessions,
LinkedHashMap<String,EventType> taggedEventTypes,
StreamTypeService streamTypeService,
MethodResolutionService methodResolutionService,
TimeProvider timeProvider,
VariableService variableService)
Factory method for compiling filter expressions into a filter specification for use with filter service. |
static List<ExprNode> |
validateDisallowSubquery(List<ExprNode> exprNodes,
StreamTypeService streamTypeService,
MethodResolutionService methodResolutionService,
TimeProvider timeProvider,
VariableService variableService)
Validates expression nodes and returns a list of validated nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_NAME_BOOLEAN_EXPRESSION
Keeping this artificial property name is a simplification as optimized filter parameters generally keep a property name.
Constructor Detail |
---|
public FilterSpecCompiler()
Method Detail |
---|
public static FilterSpecCompiled makeFilterSpec(EventType eventType, List<ExprNode> filterExpessions, LinkedHashMap<String,EventType> taggedEventTypes, StreamTypeService streamTypeService, MethodResolutionService methodResolutionService, TimeProvider timeProvider, VariableService variableService) throws ExprValidationException
eventType
- is the filtered-out event typefilterExpessions
- is a list of filter expressionstaggedEventTypes
- is a map of stream names (tags) and event types availablestreamTypeService
- is used to set rules for resolving propertiesmethodResolutionService
- resolved imports for static methods and suchtimeProvider
- - provides engine current timevariableService
- - provides access to variables
ExprValidationException
- if the expression or type validations failedpublic static List<ExprNode> validateDisallowSubquery(List<ExprNode> exprNodes, StreamTypeService streamTypeService, MethodResolutionService methodResolutionService, TimeProvider timeProvider, VariableService variableService) throws ExprValidationException
exprNodes
- is the nodes to validatestreamTypeService
- is provding type information for each streammethodResolutionService
- for resolving functionstimeProvider
- for providing current timevariableService
- provides access to variables
ExprValidationException
- for validation errorsprotected static FilterSpecParam makeFilterParam(ExprNode constituent) throws ExprValidationException
constituent
- is the expression to look at
ExprValidationException
- if the expression is invalid
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |