|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.pattern.MatchedEventMap
public final class MatchedEventMap
Collection for internal use similar to the MatchedEventMap class in the client package that holds the one or more events that could match any defined event expressions. The optional tag value supplied when an event expression is created is used as a key for placing matching event objects into this collection.
Constructor Summary | |
---|---|
MatchedEventMap()
Constructor creates an empty collection of events. |
Method Summary | |
---|---|
void |
add(String tag,
EventBean event)
Add an event to the collection identified by the given tag. |
boolean |
equals(Object otherObject)
|
EventBean |
getMatchingEvent(String tag)
Returns a single event instance given the tag identifier, or null if the tag could not be located. |
Hashtable<String,EventBean> |
getMatchingEvents()
Returns a Hashtable containing the events where the key is the event tag string and the value is the event instance. |
int |
hashCode()
|
void |
merge(MatchedEventMap other)
Merge the state of an other match event structure into this one by adding all entries within the MatchedEventMap to this match event. |
MatchedEventMap |
shallowCopy()
Make a shallow copy of this collection. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchedEventMap()
Method Detail |
---|
public void add(String tag, EventBean event)
tag
- is an identifier to retrieve the event fromevent
- is the event object to be addedpublic Hashtable<String,EventBean> getMatchingEvents()
public EventBean getMatchingEvent(String tag)
tag
- is the identifier to look for
public boolean equals(Object otherObject)
equals
in class Object
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public MatchedEventMap shallowCopy()
public void merge(MatchedEventMap other)
other
- is the other instance to merge in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |