com.espertech.esper.filter
Class FilterSpecParamRange

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

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 com.espertech.esper.filter.FilterSpecParam
EMPTY_PARAM_ARRAY, lookupable
 
Constructor Summary
FilterSpecParamRange(FilterSpecLookupable lookupable, FilterOperator filterOperator, FilterSpecParamRangeValue min, FilterSpecParamRangeValue max)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getFilterValue(MatchedEventMap matchedEvents, ExprEvaluatorContext evaluatorContext)
          Return the filter parameter constant to filter for.
 FilterSpecParamRangeValue getMax()
          Returns the upper endpoint.
 FilterSpecParamRangeValue getMin()
          Returns the lower endpoint.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.filter.FilterSpecParam
getFilterOperator, getLookupable, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterSpecParamRange

public FilterSpecParamRange(FilterSpecLookupable lookupable,
                            FilterOperator filterOperator,
                            FilterSpecParamRangeValue min,
                            FilterSpecParamRangeValue max)
                     throws java.lang.IllegalArgumentException
Constructor.

Parameters:
lookupable - is the lookupable
filterOperator - is the type of range operator
min - is the begin point of the range
max - is the end point of the range
Throws:
java.lang.IllegalArgumentException - if an operator was supplied that does not take a double range value
Method Detail

getFilterValue

public final java.lang.Object getFilterValue(MatchedEventMap matchedEvents,
                                             ExprEvaluatorContext evaluatorContext)
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 java.lang.String toString()
Overrides:
toString in class FilterSpecParam

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class FilterSpecParam

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com