com.espertech.esper.filter
Class FilterSpecParamConstant
java.lang.Object
com.espertech.esper.filter.FilterSpecParam
com.espertech.esper.filter.FilterSpecParamConstant
- All Implemented Interfaces:
- MetaDefItem, java.io.Serializable
public final class FilterSpecParamConstant
- extends FilterSpecParam
This class represents a single, constant value filter parameter in an FilterSpecCompiled
filter specification.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FilterSpecParamConstant
public FilterSpecParamConstant(FilterSpecLookupable lookupable,
FilterOperator filterOperator,
java.lang.Object filterConstant)
throws java.lang.IllegalArgumentException
- Constructor.
- Parameters:
lookupable
- is the lookupablefilterOperator
- is the type of comparefilterConstant
- contains the value to match against the event's property value
- Throws:
java.lang.IllegalArgumentException
- if an operator was supplied that does not take a single constant value
getFilterValue
public 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
getFilterConstant
public java.lang.Object getFilterConstant()
- Returns the constant value.
- Returns:
- constant value
toString
public final java.lang.String toString()
- Overrides:
toString
in class FilterSpecParam
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class FilterSpecParam
hashCode
public int hashCode()
- Overrides:
hashCode
in class FilterSpecParam