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

java.lang.Object
  extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTable
      extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAdd
All Implemented Interfaces:
EventTable, java.lang.Iterable<EventBean>
Direct Known Subclasses:
PropertyIndexedEventTableCoerceAll

public class PropertyIndexedEventTableCoerceAdd
extends 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.

Performs coercion of the index keys before storing the keys.

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
protected  java.lang.Class[] coercionTypes
           
 
Fields inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTable
organization, propertyGetters, propertyIndex
 
Constructor Summary
PropertyIndexedEventTableCoerceAdd(EventPropertyGetter[] propertyGetters, EventTableOrganization organization, SimpleNumberCoercer[] coercers, java.lang.Class[] coercionTypes)
           
 
Method Summary
protected  MultiKeyUntyped getMultiKey(EventBean theEvent)
          Determine multikey for index access.
 
Methods inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTable
add, add, addRemove, clear, getIndex, getNumberOfEvents, getNumKeys, getOrganization, isEmpty, iterator, lookup, remove, remove, toQueryPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coercionTypes

protected final java.lang.Class[] coercionTypes
Constructor Detail

PropertyIndexedEventTableCoerceAdd

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

getMultiKey

protected MultiKeyUntyped getMultiKey(EventBean theEvent)
Description copied from class: PropertyIndexedEventTable
Determine multikey for index access.

Overrides:
getMultiKey in class PropertyIndexedEventTable
Parameters:
theEvent - to get properties from for key
Returns:
multi key

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