|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.filter.EventTypeIndex
public class EventTypeIndex
Mapping of event type to a tree-like structure
containing filter parameter constants in indexes FilterParamIndexBase
and filter callbacks in FilterHandleSetNode
.
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,
FilterHandleSetNode rootNode)
Add a new event type to the index and use the specified node for the root node of its subtree. |
void |
destroy()
Destroy the service. |
FilterHandleSetNode |
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,
Collection<FilterHandle> matches)
Perform the matching of an event based on the event property values, adding any callbacks for matches found to the matches list. |
protected int |
size()
Returns the current size of the known event types. |
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 destroy()
public void add(EventType eventType, FilterHandleSetNode 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 FilterHandleSetNode get(EventType eventType)
eventType
- is an event type
public void matchEvent(EventBean event, Collection<FilterHandle> matches)
EventEvaluator
matchEvent
in interface EventEvaluator
event
- is the event object wrapper to obtain event property values frommatches
- accumulates the matching filter callbacksprotected int size()
|
© 2007 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 |