|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterParamIndexBase
net.esper.filter.FilterParamIndexPropBase
public abstract class FilterParamIndexPropBase
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 | |
---|---|
FilterParamIndexPropBase(String propertyName,
FilterOperator filterOperator,
EventType eventType)
Constructor. |
Method Summary | |
---|---|
protected abstract EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant. |
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 net.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 net.esper.filter.EventEvaluator |
---|
matchEvent |
Constructor Detail |
---|
public FilterParamIndexPropBase(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)
get
in class FilterParamIndexBase
filterConstant
- is the constant supplied in the event filter parameter
protected 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 constantprotected abstract boolean remove(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 ReadWriteLock getReadWriteLock()
getReadWriteLock
in class FilterParamIndexBase
public final String getPropertyName()
public EventPropertyGetter getGetter()
public Class getPropertyBoxedType()
public final String toString()
toString
in class FilterParamIndexBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |