|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterHandleSetNode
public final class FilterHandleSetNode
This class holds a list of indizes storing filter constants in FilterParamIndex
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()
Constructor. |
Method Summary | |
---|---|
protected void |
add(FilterHandle filterCallback)
Add a filter callback. |
protected void |
add(FilterParamIndex index)
Add an index. |
protected boolean |
contains(FilterHandle filterCallback)
Returns an indication whether the filter callback exists in this node. |
protected int |
getFilterCallbackCount()
Returns the number of filter callbacks stored. |
List<FilterParamIndex> |
getIndizes()
Returns list of indexes - not returning an iterator. |
protected 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 eventBean,
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(FilterParamIndex 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()
Method Detail |
---|
protected boolean isEmpty()
protected int getFilterCallbackCount()
protected final ReadWriteLock getNodeRWLock()
public List<FilterParamIndex> getIndizes()
public final void matchEvent(EventBean eventBean, Collection<FilterHandle> matches)
matchEvent
in interface EventEvaluator
eventBean
- 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(FilterParamIndex index)
index
- - index to addprotected final boolean remove(FilterParamIndex 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |