net.esper.filter
Class FilterSpecParamRange

java.lang.Object
  extended by net.esper.filter.FilterSpecParam
      extended by net.esper.filter.FilterSpecParamRange
All Implemented Interfaces:
Serializable, MetaDefItem

public final class FilterSpecParamRange
extends FilterSpecParam

This class represents a range filter parameter in an FilterSpecCompiled filter specification.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.esper.filter.FilterSpecParam
propertyName
 
Constructor Summary
FilterSpecParamRange(String propertyName, FilterOperator filterOperator, FilterSpecParamRangeValue min, FilterSpecParamRangeValue max)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 Object getFilterValue(MatchedEventMap matchedEvents)
          Return the filter parameter constant to filter for.
 FilterSpecParamRangeValue getMax()
          Returns the upper endpoint.
 FilterSpecParamRangeValue getMin()
          Returns the lower endpoint.
 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

FilterSpecParamRange

public FilterSpecParamRange(String propertyName,
                            FilterOperator filterOperator,
                            FilterSpecParamRangeValue min,
                            FilterSpecParamRangeValue max)
                     throws IllegalArgumentException
Constructor.

Parameters:
propertyName - is the event property name
filterOperator - is the type of range operator
min - is the begin point of the range
max - is the end point of the range
Throws:
IllegalArgumentException - if an operator was supplied that does not take a double range value
Method Detail

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

getMin

public FilterSpecParamRangeValue getMin()
Returns the lower endpoint.

Returns:
lower endpoint

getMax

public FilterSpecParamRangeValue getMax()
Returns the upper endpoint.

Returns:
upper endpoint

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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com