|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterParamIndex
net.esper.filter.FilterParamIndexRange
public final class FilterParamIndexRange
Index for filter parameter constants for the range operators (range open/closed/half). The implementation is based on the SortedMap implementation of TreeMap and stores only expression parameter values of type DoubleRange.
Constructor Summary | |
---|---|
FilterParamIndexRange(String attributeName,
FilterOperator filterOperator,
EventType eventType)
Constructs the index for matching ranges. |
Method Summary | |
---|---|
EventEvaluator |
get(Object expressionValue)
Get the event evaluation instance associated with the constant. |
ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
void |
matchEvent(EventBean eventBean,
List<FilterCallback> 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 expressionValue,
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.FilterParamIndex |
---|
getFilterOperator, getGetter, getPropertyBoxedType, getPropertyName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterParamIndexRange(String attributeName, FilterOperator filterOperator, EventType eventType)
attributeName
- is the name of the event attribute fieldfilterOperator
- is the type of rangeeventType
- is type of events handledMethod Detail |
---|
public final EventEvaluator get(Object expressionValue)
FilterParamIndex
get
in class FilterParamIndex
expressionValue
- is the constant supplied in the event filter parameter
public final void put(Object expressionValue, EventEvaluator matcher)
FilterParamIndex
put
in class FilterParamIndex
expressionValue
- is the constant supplied in the filter parametermatcher
- to be stored for the constantpublic final boolean remove(Object filterConstant)
FilterParamIndex
remove
in class FilterParamIndex
filterConstant
- is the value supplied in the filter paremeter
public final int size()
FilterParamIndex
size
in class FilterParamIndex
public final ReadWriteLock getReadWriteLock()
FilterParamIndex
getReadWriteLock
in class FilterParamIndex
public final void matchEvent(EventBean eventBean, List<FilterCallback> matches)
EventEvaluator
eventBean
- is the event object wrapper to obtain event property values frommatches
- accumulates the matching filter callbacks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |