net.esper.filter
Class FilterSpecParamConstant
java.lang.Object
net.esper.filter.FilterSpecParam
net.esper.filter.FilterSpecParamConstant
public final class FilterSpecParamConstant
- extends FilterSpecParam
This class represents a single, constant value filter parameter in an FilterSpec
filter specification.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FilterSpecParamConstant
public FilterSpecParamConstant(java.lang.String propertyName,
FilterOperator filterOperator,
java.lang.Object filterConstant)
throws java.lang.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:
java.lang.IllegalArgumentException
- if an operator was supplied that does not take a single constant value
getFilterValueClass
public java.lang.Class getFilterValueClass(java.util.Map<java.lang.String,EventType> taggedEventTypes)
- Description copied from class:
FilterSpecParam
- Return the filter parameter constant's class.
- Specified by:
getFilterValueClass
in class FilterSpecParam
- Parameters:
taggedEventTypes
- is the event types per event as-name (tag)
- Returns:
- filter parameter value class
getFilterValue
public java.lang.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
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