public abstract class FilterParamIndexBase extends Object implements EventEvaluator
For example, a filter with a parameter of "count EQUALS 10" would be represented as index for a property named "count" and for a filter operator typed "EQUALS". The index would store a value of "10" in its internal structure.
Implementations make sure that the type of the Object constant in get and put calls matches the event property type.
Constructor and Description |
---|
FilterParamIndexBase(FilterOperator filterOperator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant.
|
FilterOperator |
getFilterOperator()
Returns the filter operator that the index matches for.
|
abstract ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access.
|
abstract boolean |
isEmpty()
Return empty indicator.
|
abstract void |
put(Object filterConstant,
EventEvaluator evaluator)
Store the event evaluation instance for the given constant.
|
abstract void |
remove(Object filterConstant)
Remove the event evaluation instance for the given constant.
|
abstract int |
sizeExpensive()
Return the number of distinct filter parameter constants stored, which can be an expensive call.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
matchEvent
public FilterParamIndexBase(FilterOperator filterOperator)
filterOperator
- is the type of comparison performed.public abstract EventEvaluator get(Object filterConstant)
filterConstant
- is the constant supplied in the event filter parameterpublic abstract void put(Object filterConstant, EventEvaluator evaluator)
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantpublic abstract void remove(Object filterConstant)
filterConstant
- is the value supplied in the filter paremeterpublic abstract int sizeExpensive()
public abstract boolean isEmpty()
public abstract ReadWriteLock getReadWriteLock()
public final FilterOperator getFilterOperator()