|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterParamIndexBase
public abstract class FilterParamIndexBase
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.
Constructor Summary | |
---|---|
FilterParamIndexBase(FilterOperator filterOperator)
Constructor. |
Method Summary | |
---|---|
abstract EventEvaluator |
get(java.lang.Object filterConstant)
Get the event evaluation instance associated with the constant. |
FilterOperator |
getFilterOperator()
Returns the filter operator that the index matches for. |
abstract java.util.concurrent.locks.ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
abstract void |
put(java.lang.Object filterConstant,
EventEvaluator evaluator)
Store the event evaluation instance for the given constant. |
abstract boolean |
remove(java.lang.Object filterConstant)
Remove the event evaluation instance for the given constant. |
abstract int |
size()
Return the number of distinct filter parameter constants stored. |
java.lang.String |
toString()
|
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 |
Constructor Detail |
---|
public FilterParamIndexBase(FilterOperator filterOperator)
filterOperator
- is the type of comparison performed.Method Detail |
---|
public abstract EventEvaluator get(java.lang.Object filterConstant)
filterConstant
- is the constant supplied in the event filter parameter
public abstract void put(java.lang.Object filterConstant, EventEvaluator evaluator)
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantpublic abstract boolean remove(java.lang.Object filterConstant)
filterConstant
- is the value supplied in the filter paremeter
public abstract int size()
public abstract java.util.concurrent.locks.ReadWriteLock getReadWriteLock()
public final FilterOperator getFilterOperator()
public java.lang.String toString()
toString
in class java.lang.Object
|
© 2006-2016 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 |