net.esper.filter
Class FilterSpecParamExprNode
java.lang.Object
net.esper.filter.FilterSpecParam
net.esper.filter.FilterSpecParamExprNode
- All Implemented Interfaces:
- Serializable, MetaDefItem
public final class FilterSpecParamExprNode
- extends FilterSpecParam
This class represents an arbitrary expression node returning a boolean value as a filter parameter in an FilterSpecCompiled
filter specification.
- See Also:
- Serialized Form
FilterSpecParamExprNode
public FilterSpecParamExprNode(String propertyName,
FilterOperator filterOperator,
ExprNode exprNode,
LinkedHashMap<String,EventType> taggedEventTypes)
throws IllegalArgumentException
- Ctor.
- Parameters:
propertyName
- is the event property namefilterOperator
- is expected to be the BOOLEAN_EXPR operatorexprNode
- represents the boolean expressiontaggedEventTypes
- is null if the expression doesn't need other streams, or is filled with a ordered list of stream names and types
- Throws:
IllegalArgumentException
- for illegal args
getExprNode
public ExprNode getExprNode()
- Returns the expression node of the boolean expression this filter parameter represents.
- Returns:
- expression node
getTaggedEventTypes
public LinkedHashMap<String,EventType> getTaggedEventTypes()
- Returns the map of tag/stream names to event types that the filter expressions map use (for patterns)
- Returns:
- map
getFilterValue
public final Object getFilterValue(MatchedEventMap matchedEvents)
- Description copied from class:
FilterSpecParam
- Return the filter parameter constant to filter for.
- Specified by:
getFilterValue
in class FilterSpecParam
- Parameters:
matchedEvents
- is the prior results that can be used to determine filter parameters
- Returns:
- filter parameter constant's value
toString
public final String toString()
- Overrides:
toString
in class FilterSpecParam
equals
public boolean equals(Object obj)
- Overrides:
equals
in class FilterSpecParam
hashCode
public int hashCode()
- Overrides:
hashCode
in class FilterSpecParam