public final class FilterSpecParamConstant extends FilterSpecParam
FilterSpecCompiled
filter specification.EMPTY_PARAM_ARRAY
Constructor and Description |
---|
FilterSpecParamConstant(FilterSpecLookupable lookupable,
FilterOperator filterOperator,
java.lang.Object filterConstant)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getFilterConstant()
Returns the constant value.
|
java.lang.Object |
getFilterValue(MatchedEventMap matchedEvents,
ExprEvaluatorContext evaluatorContext)
Return the filter parameter constant to filter for.
|
int |
hashCode() |
java.lang.String |
toString() |
getFilterOperator, getLookupable, toArray
public FilterSpecParamConstant(FilterSpecLookupable lookupable, FilterOperator filterOperator, java.lang.Object filterConstant) throws java.lang.IllegalArgumentException
lookupable
- is the lookupablefilterOperator
- is the type of comparefilterConstant
- contains the value to match against the event's property valuejava.lang.IllegalArgumentException
- if an operator was supplied that does not take a single constant valuepublic java.lang.Object getFilterValue(MatchedEventMap matchedEvents, ExprEvaluatorContext evaluatorContext)
FilterSpecParam
getFilterValue
in class FilterSpecParam
matchedEvents
- is the prior results that can be used to determine filter parameterspublic java.lang.Object getFilterConstant()
public final java.lang.String toString()
toString
in class FilterSpecParam
public boolean equals(java.lang.Object o)
equals
in class FilterSpecParam
public int hashCode()
hashCode
in class FilterSpecParam