com.espertech.esper.epl.join.table
Class PropertyIndexedEventTableCoerceAll
java.lang.Object
com.espertech.esper.epl.join.table.PropertyIndexedEventTable
com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAdd
com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAll
- All Implemented Interfaces:
- EventTable, java.lang.Iterable<EventBean>
public class PropertyIndexedEventTableCoerceAll
- extends PropertyIndexedEventTableCoerceAdd
Index that organizes events by the event property values into hash buckets. Based on a HashMap
with MultiKeyUntyped
keys that store the property values.
Performs coercion of the index keys before storing the keys, and coercion of the lookup keys before lookup.
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.
Method Summary |
java.util.Set<EventBean> |
lookup(java.lang.Object[] keys)
Returns the set of events that have the same property value as the given event. |
Methods inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTable |
add, add, addRemove, clear, getIndex, getNumberOfEvents, getNumKeys, getOrganization, isEmpty, iterator, remove, remove, toQueryPlan |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyIndexedEventTableCoerceAll
public PropertyIndexedEventTableCoerceAll(EventPropertyGetter[] propertyGetters,
EventTableOrganization organization,
SimpleNumberCoercer[] coercers,
java.lang.Class[] coercionType)
lookup
public java.util.Set<EventBean> lookup(java.lang.Object[] keys)
- Returns the set of events that have the same property value as the given event.
- Overrides:
lookup
in class PropertyIndexedEventTable
- Parameters:
keys
- to compare against
- Returns:
- set of events with property value, or null if none found (never returns zero-sized set)