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

java.lang.Object
  extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory
      extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAddFactory
          extended by com.espertech.esper.epl.join.table.PropertyIndexedEventTableCoerceAllFactory
All Implemented Interfaces:
EventTableFactory

public class PropertyIndexedEventTableCoerceAllFactory
extends PropertyIndexedEventTableCoerceAddFactory

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.PropertyIndexedEventTableCoerceAddFactory
coercers, coercionType
 
Fields inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory
optionalIndexName, propertyGetters, propertyNames, streamNum, unique
 
Constructor Summary
PropertyIndexedEventTableCoerceAllFactory(int streamNum, EventType eventType, java.lang.String[] propertyNames, java.lang.Class[] coercionType)
          Ctor.
 
Method Summary
 EventTable[] makeEventTables()
           
 
Methods inherited from class com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory
getEventTableClass, toQueryPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIndexedEventTableCoerceAllFactory

public PropertyIndexedEventTableCoerceAllFactory(int streamNum,
                                                 EventType eventType,
                                                 java.lang.String[] propertyNames,
                                                 java.lang.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

makeEventTables

public EventTable[] makeEventTables()
Specified by:
makeEventTables in interface EventTableFactory
Overrides:
makeEventTables in class PropertyIndexedEventTableCoerceAddFactory

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