|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.FilterHandleSetNode
public final class FilterHandleSetNode
This class holds a list of indizes storing filter constants in FilterParamIndexBase
nodes
and a set of FilterHandle
.
An instance of this class represents a leaf-node (no indizes stored, just filter callbacks)
but can also be non-leaf (some indizes exist) in a filter evaluation tree.
Events are evaluated by asking each of the indizes to evaluate the event and by
adding any filter callbacks in this node to the "matches" list of callbacks.
Constructor Summary | |
---|---|
FilterHandleSetNode(java.util.concurrent.locks.ReadWriteLock nodeRWLock)
Constructor. |
Method Summary | |
---|---|
protected void |
add(FilterHandle filterCallback)
Add a filter callback. |
protected void |
add(FilterParamIndexBase index)
Add an index. |
protected boolean |
contains(FilterHandle filterCallback)
Returns an indication whether the filter callback exists in this node. |
java.util.Set<FilterHandle> |
getCallbackSet()
|
protected int |
getFilterCallbackCount()
Returns the number of filter callbacks stored. |
java.util.List<FilterParamIndexBase> |
getIndizes()
Returns list of indexes - not returning an iterator. |
protected java.util.concurrent.locks.ReadWriteLock |
getNodeRWLock()
Returns to lock to use for making changes to the filter callback or inzides collections stored by this node. |
protected boolean |
isEmpty()
Returns an indication of whether there are any callbacks or index nodes at all in this set. |
void |
matchEvent(EventBean theEvent,
java.util.Collection<FilterHandle> matches)
Evaluate an event by asking each index to match the event. |
protected boolean |
remove(FilterHandle filterCallback)
Remove a filter callback, returning true if it was found and removed or false if not in collection. |
protected boolean |
remove(FilterParamIndexBase index)
Remove an index, returning true if it was found and removed or false if not in collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterHandleSetNode(java.util.concurrent.locks.ReadWriteLock nodeRWLock)
Method Detail |
---|
protected boolean isEmpty()
protected int getFilterCallbackCount()
protected final java.util.concurrent.locks.ReadWriteLock getNodeRWLock()
public java.util.List<FilterParamIndexBase> getIndizes()
public final void matchEvent(EventBean theEvent, java.util.Collection<FilterHandle> matches)
matchEvent
in interface EventEvaluator
theEvent
- is the event wrapper supplying the event property valuesmatches
- is the list of callbacks to add to for any matches foundprotected boolean contains(FilterHandle filterCallback)
filterCallback
- is the filter callback to check for
protected final void add(FilterParamIndexBase index)
index
- - index to addprotected final boolean remove(FilterParamIndexBase index)
index
- is the index to remove
protected final void add(FilterHandle filterCallback)
filterCallback
- is the callback to addprotected final boolean remove(FilterHandle filterCallback)
filterCallback
- is the callback to remove
public java.util.Set<FilterHandle> getCallbackSet()
|
© 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 |