|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.EventTypeIndex
public class EventTypeIndex
Mapping of event type to a tree-like structure
containing filter parameter constants in indexes FilterParamIndex
and filter callbacks in FilterCallbackSetNode
.
This class evaluates events for the purpose of filtering by (1) looking up the event's EventType
and (2) asking the subtree for this event type to evaluate the event.
The class performs all the locking required for multithreaded access.
Constructor Summary | |
---|---|
EventTypeIndex()
Constructor. |
Method Summary | |
---|---|
void |
add(EventType eventType,
FilterCallbackSetNode rootNode)
Add a new event type to the index and use the specified node for the root node of its subtree. |
FilterCallbackSetNode |
get(EventType eventType)
Returns the root node for the given event type, or null if this event type has not been seen before. |
void |
matchEvent(EventBean event,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventTypeIndex()
Method Detail |
---|
public void add(EventType eventType, FilterCallbackSetNode rootNode)
eventType
- is the event type to be added to the indexrootNode
- is the root node of the subtree for filter constant indizes and callbackspublic FilterCallbackSetNode get(EventType eventType)
eventType
- is an event type
public void matchEvent(EventBean event, List<FilterCallback> matches)
EventEvaluator
matchEvent
in interface EventEvaluator
event
- 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 |