|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterParamIndexBase
com.espertech.esper.filter.FilterParamIndexLookupableBase
public abstract class FilterParamIndexLookupableBase
Each implementation of this abstract class represents an index of filter parameter constants supplied in filter parameters in filter specifications that feature the same event property and operator.
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.
Field Summary | |
---|---|
protected FilterSpecLookupable |
lookupable
|
Constructor Summary | |
---|---|
FilterParamIndexLookupableBase(FilterOperator filterOperator,
FilterSpecLookupable lookupable)
Constructor. |
Method Summary | |
---|---|
protected abstract EventEvaluator |
get(java.lang.Object filterConstant)
Get the event evaluation instance associated with the constant. |
FilterSpecLookupable |
getLookupable()
|
protected abstract java.util.concurrent.locks.ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
protected abstract void |
put(java.lang.Object filterConstant,
EventEvaluator evaluator)
Store the event evaluation instance for the given constant. |
protected abstract boolean |
remove(java.lang.Object filterConstant)
Remove the event evaluation instance for the given constant. |
protected abstract int |
size()
Return the number of distinct filter parameter constants stored. |
java.lang.String |
toString()
|
Methods inherited from class com.espertech.esper.filter.FilterParamIndexBase |
---|
getFilterOperator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.espertech.esper.filter.EventEvaluator |
---|
matchEvent |
Field Detail |
---|
protected final FilterSpecLookupable lookupable
Constructor Detail |
---|
public FilterParamIndexLookupableBase(FilterOperator filterOperator, FilterSpecLookupable lookupable)
filterOperator
- is the type of comparison performed.lookupable
- is the lookupableMethod Detail |
---|
protected abstract EventEvaluator get(java.lang.Object filterConstant)
get
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the event filter parameter
protected abstract void put(java.lang.Object filterConstant, EventEvaluator evaluator)
put
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantprotected abstract boolean remove(java.lang.Object filterConstant)
remove
in class FilterParamIndexBase
filterConstant
- is the value supplied in the filter paremeter
protected abstract int size()
size
in class FilterParamIndexBase
protected abstract java.util.concurrent.locks.ReadWriteLock getReadWriteLock()
getReadWriteLock
in class FilterParamIndexBase
public final java.lang.String toString()
toString
in class FilterParamIndexBase
public FilterSpecLookupable getLookupable()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |