|
||||||||||
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
com.espertech.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.
Field Summary |
---|
Fields inherited from class com.espertech.esper.filter.FilterParamIndexLookupableBase |
---|
lookupable |
Constructor Summary | |
---|---|
FilterParamIndexCompare(FilterSpecLookupable lookupable,
java.util.concurrent.locks.ReadWriteLock readWriteLock,
FilterOperator filterOperator)
|
Method Summary | |
---|---|
EventEvaluator |
get(java.lang.Object filterConstant)
Get the event evaluation instance associated with the constant. |
java.util.concurrent.locks.ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
void |
matchEvent(EventBean theEvent,
java.util.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(java.lang.Object filterConstant,
EventEvaluator matcher)
Store the event evaluation instance for the given constant. |
boolean |
remove(java.lang.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 com.espertech.esper.filter.FilterParamIndexLookupableBase |
---|
getLookupable, 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 |
Constructor Detail |
---|
public FilterParamIndexCompare(FilterSpecLookupable lookupable, java.util.concurrent.locks.ReadWriteLock readWriteLock, FilterOperator filterOperator)
Method Detail |
---|
public final EventEvaluator get(java.lang.Object filterConstant)
FilterParamIndexLookupableBase
get
in class FilterParamIndexLookupableBase
filterConstant
- is the constant supplied in the event filter parameter
public final void put(java.lang.Object filterConstant, EventEvaluator matcher)
FilterParamIndexLookupableBase
put
in class FilterParamIndexLookupableBase
filterConstant
- is the constant supplied in the filter parametermatcher
- to be stored for the constantpublic final boolean remove(java.lang.Object filterConstant)
FilterParamIndexLookupableBase
remove
in class FilterParamIndexLookupableBase
filterConstant
- is the value supplied in the filter paremeter
public final int size()
FilterParamIndexLookupableBase
size
in class FilterParamIndexLookupableBase
public final java.util.concurrent.locks.ReadWriteLock getReadWriteLock()
FilterParamIndexLookupableBase
getReadWriteLock
in class FilterParamIndexLookupableBase
public final void matchEvent(EventBean theEvent, java.util.Collection<FilterHandle> matches)
EventEvaluator
theEvent
- is the event object wrapper to obtain event property values frommatches
- accumulates the matching filter callbacks
|
© 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 |