com.espertech.esper.epl.join.table
Class PropertyIndexedEventTableFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 indexedeventType
- - types of events indexedpropertyNames
- - property names to use for indexingunique
- optionalIndexName
-
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