net.esper.filter
Class FilterSpecParamExprNode

java.lang.Object
  extended by net.esper.filter.FilterSpecParam
      extended by 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

Field Summary
 
Fields inherited from class net.esper.filter.FilterSpecParam
propertyName
 
Constructor Summary
FilterSpecParamExprNode(String propertyName, FilterOperator filterOperator, ExprNode exprNode, LinkedHashMap<String,EventType> taggedEventTypes)
          Ctor.
 
Method Summary
 boolean equals(Object obj)
           
 ExprNode getExprNode()
          Returns the expression node of the boolean expression this filter parameter represents.
 Object getFilterValue(MatchedEventMap matchedEvents)
          Return the filter parameter constant to filter for.
 LinkedHashMap<String,EventType> getTaggedEventTypes()
          Returns the map of tag/stream names to event types that the filter expressions map use (for patterns)
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.esper.filter.FilterSpecParam
getFilterOperator, getPropertyName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterSpecParamExprNode

public FilterSpecParamExprNode(String propertyName,
                               FilterOperator filterOperator,
                               ExprNode exprNode,
                               LinkedHashMap<String,EventType> taggedEventTypes)
                        throws IllegalArgumentException
Ctor.

Parameters:
propertyName - is the event property name
filterOperator - is expected to be the BOOLEAN_EXPR operator
exprNode - represents the boolean expression
taggedEventTypes - 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
Method Detail

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