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

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

public class PropertyIndexedEventTableFactory
extends java.lang.Object
implements EventTableFactory

Index factory that organizes events by the event property values into hash buckets. Based on a HashMap with MultiKeyUntyped keys that store the property values. 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.String optionalIndexName
           
protected  EventPropertyGetter[] propertyGetters
          Getters for properties.
protected  java.lang.String[] propertyNames
           
protected  int streamNum
           
protected  boolean unique
           
 
Constructor Summary
PropertyIndexedEventTableFactory(int streamNum, EventType eventType, java.lang.String[] propertyNames, boolean unique, java.lang.String optionalIndexName)
          Ctor.
 
Method Summary
 java.lang.Class getEventTableClass()
           
 EventTable[] makeEventTables()
           
 java.lang.String toQueryPlan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamNum

protected final int streamNum

propertyNames

protected final java.lang.String[] propertyNames

unique

protected final boolean unique

optionalIndexName

protected final java.lang.String optionalIndexName

propertyGetters

protected final EventPropertyGetter[] propertyGetters
Getters for properties.

Constructor Detail

PropertyIndexedEventTableFactory

public PropertyIndexedEventTableFactory(int streamNum,
                                        EventType eventType,
                                        java.lang.String[] propertyNames,
                                        boolean unique,
                                        java.lang.String optionalIndexName)
Ctor.

Parameters:
streamNum - - the stream number that is indexed
eventType - - types of events indexed
propertyNames - - property names to use for indexing
unique -
optionalIndexName -
Method Detail

makeEventTables

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

getEventTableClass

public java.lang.Class getEventTableClass()
Specified by:
getEventTableClass in interface EventTableFactory

toQueryPlan

public java.lang.String toQueryPlan()
Specified by:
toQueryPlan in interface EventTableFactory

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