com.espertech.esper.epl.join.table
Class PropertyIndexedEventTableCoerceAll

java.lang.Object
  extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTable
      extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAdd
          extended by 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.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAdd
coercionTypes
 
Fields inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTable
organization, propertyGetters, propertyIndex
 
Constructor Summary
PropertyIndexedEventTableCoerceAll(EventPropertyGetter[] propertyGetters, EventTableOrganization organization, SimpleNumberCoercer[] coercers, java.lang.Class[] coercionType)
           
 
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.PropertyIndexedEventTableCoerceAdd
getMultiKey
 
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
 

Constructor Detail

PropertyIndexedEventTableCoerceAll

public PropertyIndexedEventTableCoerceAll(EventPropertyGetter[] propertyGetters,
                                          EventTableOrganization organization,
                                          SimpleNumberCoercer[] coercers,
                                          java.lang.Class[] coercionType)
Method Detail

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)

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com