net.esper.filter
Class FilterSpecParamConstant
java.lang.Object
net.esper.filter.FilterSpecParam
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.
FilterSpecParamConstant
public FilterSpecParamConstant(String propertyName,
FilterOperator filterOperator,
Object filterConstant)
throws IllegalArgumentException
- Constructor.
- Parameters:
propertyName
- is the event property namefilterOperator
- is the type of comparefilterConstant
- 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
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