net.esper.filter
Class FilterSpecParamConstant

java.lang.Object
  extended by net.esper.filter.FilterSpecParam
      extended by net.esper.filter.FilterSpecParamConstant
All Implemented Interfaces:
MetaDefItem

public final class FilterSpecParamConstant
extends FilterSpecParam

This class represents a single, constant value filter parameter in an FilterSpecCompiled filter specification.


Constructor Summary
FilterSpecParamConstant(String propertyName, FilterOperator filterOperator, Object filterConstant)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Object getFilterConstant()
          Returns the constant value.
 Object getFilterValue(MatchedEventMap matchedEvents)
          Return the filter parameter constant to filter for.
 String toString()
           
 
Methods inherited from class net.esper.filter.FilterSpecParam
getFilterOperator, getPropertyName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterSpecParamConstant

public FilterSpecParamConstant(String propertyName,
                               FilterOperator filterOperator,
                               Object filterConstant)
                        throws IllegalArgumentException
Constructor.

Parameters:
propertyName - is the event property name
filterOperator - is the type of compare
filterConstant - contains the value to match against the event's property value
Throws:
IllegalArgumentException - if an operator was supplied that does not take a single constant value
Method Detail

getFilterValue

public 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

getFilterConstant

public Object getFilterConstant()
Returns the constant value.

Returns:
constant value

toString

public final String toString()
Overrides:
toString in class FilterSpecParam

equals

public boolean equals(Object obj)
Overrides:
equals in class FilterSpecParam