net.esper.eql.join.table
Class PropertyIndTableCoerceAdd

java.lang.Object
  extended by net.esper.eql.join.table.PropertyIndexedEventTable
      extended by net.esper.eql.join.table.PropertyIndTableCoerceAdd
All Implemented Interfaces:
EventTable
Direct Known Subclasses:
PropertyIndTableCoerceAll

public class PropertyIndTableCoerceAdd
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
 
Fields inherited from class net.esper.eql.join.table.PropertyIndexedEventTable
propertyGetters, propertyIndex
 
Constructor Summary
PropertyIndTableCoerceAdd(int streamNum, EventType eventType, String[] propertyNames, Class[] coercionType)
          Ctor.
 
Method Summary
protected  MultiKeyUntyped getMultiKey(EventBean event)
          Determine multikey for index access.
 
Methods inherited from class net.esper.eql.join.table.PropertyIndexedEventTable
add, lookup, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyIndTableCoerceAdd

public PropertyIndTableCoerceAdd(int streamNum,
                                 EventType eventType,
                                 String[] propertyNames,
                                 Class[] coercionType)
Ctor.

Parameters:
streamNum - is the stream number of the indexed stream
eventType - is the event type of the indexed stream
propertyNames - are the property names to get property values
coercionType - are the classes to coerce indexed values to
Method Detail

getMultiKey

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

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