public final class FilterHandleSetNode extends java.lang.Object implements EventEvaluator
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 and Description |
---|
FilterHandleSetNode(java.util.concurrent.locks.ReadWriteLock nodeRWLock)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<FilterHandle> |
getCallbackSet() |
java.util.List<FilterParamIndexBase> |
getIndizes()
Returns list of indexes - not returning an iterator.
|
void |
matchEvent(EventBean theEvent,
java.util.Collection<FilterHandle> matches)
Evaluate an event by asking each index to match the event.
|
public FilterHandleSetNode(java.util.concurrent.locks.ReadWriteLock nodeRWLock)
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 foundpublic java.util.Set<FilterHandle> getCallbackSet()