|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.join.table.PropertyIndexedEventTable
public class PropertyIndexedEventTable
Index that organizes events by the event property values into hash buckets. Based on a HashMap
with MultiKeyUntyped
keys that store the property values.
Takes a list of property names as parameter. Doesn't care which event type the events have as long as the properties
exist. If the same event is added twice, the class throws an exception on add.
Constructor Summary | |
---|---|
PropertyIndexedEventTable(int streamNum,
EventType eventType,
java.lang.String[] propertyNames)
Ctor. |
Method Summary | |
---|---|
void |
add(EventBean[] events)
Add an array of events. |
java.util.Set<EventBean> |
lookup(java.lang.Object[] keys)
Returns the set of events that have the same property value as the given event. |
void |
remove(EventBean[] events)
Remove events. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyIndexedEventTable(int streamNum, EventType eventType, java.lang.String[] propertyNames)
streamNum
- - the stream number that is indexedeventType
- - types of events indexedpropertyNames
- - property names to use for indexingMethod Detail |
---|
public void add(EventBean[] events)
add
in interface EventTable
events
- to add
java.lang.IllegalArgumentException
- if the event was already existed in the indexpublic void remove(EventBean[] events)
remove
in interface EventTable
events
- to be removed, can be null instead of an empty array.
java.lang.IllegalArgumentException
- when the event could not be removed as its not in the indexpublic java.util.Set<EventBean> lookup(java.lang.Object[] keys)
keys
- to compare against
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |