|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterParamIndex
public abstract class FilterParamIndex
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 | |
---|---|
FilterParamIndex(String propertyName,
FilterOperator filterOperator,
EventType eventType)
Constructor. |
Method Summary | |
---|---|
protected 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. |
EventPropertyGetter |
getGetter()
Returns getter for property. |
Class |
getPropertyBoxedType()
Returns boxed property type. |
String |
getPropertyName()
Returns the name of the property to get the value for to match against the values contained in the index. |
protected abstract ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
protected abstract void |
put(Object filterConstant,
EventEvaluator evaluator)
Store the event evaluation instance for the given constant. |
protected abstract boolean |
remove(Object filterConstant)
Remove the event evaluation instance for the given constant. |
protected abstract int |
size()
Return the number of distinct filter parameter constants stored. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.esper.filter.EventEvaluator |
---|
matchEvent |
Constructor Detail |
---|
public FilterParamIndex(String propertyName, FilterOperator filterOperator, EventType eventType)
propertyName
- is the name of the event property the index goes againstfilterOperator
- is the type of comparison performed.eventType
- is the event type the index will handle.Method Detail |
---|
protected abstract EventEvaluator get(Object filterConstant)
filterConstant
- is the constant supplied in the event filter parameter
protected abstract void put(Object filterConstant, EventEvaluator evaluator)
filterConstant
- is the constant supplied in the filter parameterevaluator
- to be stored for the constantprotected abstract boolean remove(Object filterConstant)
filterConstant
- is the value supplied in the filter paremeter
protected abstract int size()
protected abstract ReadWriteLock getReadWriteLock()
public final String getPropertyName()
public final FilterOperator getFilterOperator()
public EventPropertyGetter getGetter()
public Class getPropertyBoxedType()
public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |