public abstract class FilterParamIndexLookupableBase extends FilterParamIndexBase
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.
Modifier and Type | Field and Description |
---|---|
protected FilterSpecLookupable |
lookupable |
Constructor and Description |
---|
FilterParamIndexLookupableBase(FilterOperator filterOperator,
FilterSpecLookupable lookupable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant.
|
FilterSpecLookupable |
getLookupable() |
abstract ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access.
|
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.
|
String |
toString() |
getFilterOperator, isEmpty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
matchEvent
protected final FilterSpecLookupable lookupable
public FilterParamIndexLookupableBase(FilterOperator filterOperator, FilterSpecLookupable lookupable)
filterOperator
- is the type of comparison performed.lookupable
- is the lookupablepublic abstract EventEvaluator get(Object filterConstant)
get
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the event filter parameterpublic abstract void put(Object filterConstant, EventEvaluator evaluator)
put
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantpublic abstract void remove(Object filterConstant)
remove
in class FilterParamIndexBase
filterConstant
- is the value supplied in the filter paremeterpublic abstract int sizeExpensive()
sizeExpensive
in class FilterParamIndexBase
public abstract ReadWriteLock getReadWriteLock()
getReadWriteLock
in class FilterParamIndexBase
public final String toString()
toString
in class FilterParamIndexBase
public FilterSpecLookupable getLookupable()