public class PropertyIndexedEventTableFactory extends Object implements EventTableFactory
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.
Modifier and Type | Field and Description |
---|---|
protected String |
optionalIndexName |
protected EventPropertyGetter[] |
propertyGetters
Getters for properties.
|
protected String[] |
propertyNames |
protected int |
streamNum |
protected boolean |
unique |
Constructor and Description |
---|
PropertyIndexedEventTableFactory(int streamNum,
EventType eventType,
String[] propertyNames,
boolean unique,
String optionalIndexName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Class |
getEventTableClass() |
String |
getOptionalIndexName() |
protected EventTableOrganization |
getOrganization() |
EventPropertyGetter[] |
getPropertyGetters() |
String[] |
getPropertyNames() |
int |
getStreamNum() |
boolean |
isUnique() |
EventTable[] |
makeEventTables(EventTableFactoryTableIdent tableIdent,
ExprEvaluatorContext exprEvaluatorContext) |
String |
toQueryPlan() |
protected final int streamNum
protected final String[] propertyNames
protected final boolean unique
protected final String optionalIndexName
protected final EventPropertyGetter[] propertyGetters
public PropertyIndexedEventTableFactory(int streamNum, EventType eventType, String[] propertyNames, boolean unique, String optionalIndexName)
streamNum
- - the stream number that is indexedeventType
- - types of events indexedpropertyNames
- - property names to use for indexingunique
- unique flagoptionalIndexName
- index namepublic EventTable[] makeEventTables(EventTableFactoryTableIdent tableIdent, ExprEvaluatorContext exprEvaluatorContext)
makeEventTables
in interface EventTableFactory
public Class getEventTableClass()
getEventTableClass
in interface EventTableFactory
public String toQueryPlan()
toQueryPlan
in interface EventTableFactory
public int getStreamNum()
public String[] getPropertyNames()
public boolean isUnique()
public String getOptionalIndexName()
public EventPropertyGetter[] getPropertyGetters()
protected EventTableOrganization getOrganization()