|
||||||||||
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
net.esper.filter.FilterParamIndexCompare
public final class FilterParamIndexCompare
Index for filter parameter constants for the comparison operators (less, greater, etc). The implementation is based on the SortedMap implementation of TreeMap. The index only accepts numeric constants. It keeps a lower and upper bounds of all constants in the index for fast range checking, since the assumption is that frequently values fall within a range.
Constructor Summary | |
---|---|
FilterParamIndexCompare(String propertyName,
FilterOperator filterOperator,
EventType eventType)
Constructs the index for matching comparison operators (<, >, <=, >=). |
Method Summary | |
---|---|
EventEvaluator |
get(Object filterConstant)
Get the event evaluation instance associated with the constant. |
ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
void |
matchEvent(EventBean eventBean,
Collection<FilterHandle> matches)
Perform the matching of an event based on the event property values, adding any callbacks for matches found to the matches list. |
void |
put(Object filterConstant,
EventEvaluator matcher)
Store the event evaluation instance for the given constant. |
boolean |
remove(Object filterConstant)
Remove the event evaluation instance for the given constant. |
int |
size()
Return the number of distinct filter parameter constants stored. |
Methods inherited from class net.esper.filter.FilterParamIndexPropBase |
---|
getGetter, getPropertyBoxedType, getPropertyName, 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 |
Constructor Detail |
---|
public FilterParamIndexCompare(String propertyName, FilterOperator filterOperator, EventType eventType)
propertyName
- is the name of the event attribute fieldfilterOperator
- is the type of relational comparison operatoreventType
- describes the event type and is used to obtain a getter instance for the property
for fast get value access.Method Detail |
---|
public final EventEvaluator get(Object filterConstant)
FilterParamIndexPropBase
get
in class FilterParamIndexPropBase
filterConstant
- is the constant supplied in the event filter parameter
public final void put(Object filterConstant, EventEvaluator matcher)
FilterParamIndexPropBase
put
in class FilterParamIndexPropBase
filterConstant
- is the constant supplied in the filter parametermatcher
- to be stored for the constantpublic final boolean remove(Object filterConstant)
FilterParamIndexPropBase
remove
in class FilterParamIndexPropBase
filterConstant
- is the value supplied in the filter paremeter
public final int size()
FilterParamIndexPropBase
size
in class FilterParamIndexPropBase
public final ReadWriteLock getReadWriteLock()
FilterParamIndexPropBase
getReadWriteLock
in class FilterParamIndexPropBase
public final void matchEvent(EventBean eventBean, Collection<FilterHandle> matches)
EventEvaluator
eventBean
- is the event object wrapper to obtain event property values frommatches
- accumulates the matching filter callbacks
|
© 2007 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 |