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 com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable |
lookupable |
Constructor and Description |
---|
FilterParamIndexLookupableBase(com.espertech.esper.common.internal.filterspec.FilterOperator filterOperator,
com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable lookupable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant.
|
com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable |
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() |
getFilterCallbackCount, getFilterOperator, isEmpty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraverseStatement, matchEvent
protected final com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable lookupable
public FilterParamIndexLookupableBase(com.espertech.esper.common.internal.filterspec.FilterOperator filterOperator, com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable 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 com.espertech.esper.common.internal.epl.expression.core.ExprFilterSpecLookupable getLookupable()
Copyright © 2005–2021. All rights reserved.