|
||||||||||
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.FilterParamIndexDoubleRangeBase
public abstract class FilterParamIndexDoubleRangeBase
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.
Field Summary | |
---|---|
protected double |
largestRangeValueDouble
|
protected java.util.TreeMap<DoubleRange,EventEvaluator> |
ranges
|
Fields inherited from class com.espertech.esper.filter.FilterParamIndexLookupableBase |
---|
lookupable |
Constructor Summary | |
---|---|
protected |
FilterParamIndexDoubleRangeBase(FilterSpecLookupable lookupable,
java.util.concurrent.locks.ReadWriteLock readWriteLock,
FilterOperator filterOperator)
|
Method Summary | |
---|---|
EventEvaluator |
get(java.lang.Object expressionValue)
Get the event evaluation instance associated with the constant. |
java.util.concurrent.locks.ReadWriteLock |
getReadWriteLock()
Supplies the lock for protected access. |
void |
put(java.lang.Object expressionValue,
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 |
Methods inherited from interface com.espertech.esper.filter.EventEvaluator |
---|
matchEvent |
Field Detail |
---|
protected final java.util.TreeMap<DoubleRange,EventEvaluator> ranges
protected double largestRangeValueDouble
Constructor Detail |
---|
protected FilterParamIndexDoubleRangeBase(FilterSpecLookupable lookupable, java.util.concurrent.locks.ReadWriteLock readWriteLock, FilterOperator filterOperator)
Method Detail |
---|
public final EventEvaluator get(java.lang.Object expressionValue)
FilterParamIndexLookupableBase
get
in class FilterParamIndexLookupableBase
expressionValue
- is the constant supplied in the event filter parameter
public final void put(java.lang.Object expressionValue, EventEvaluator matcher)
FilterParamIndexLookupableBase
put
in class FilterParamIndexLookupableBase
expressionValue
- 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
|
© 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 |