public class PropertyCompositeEventTableFactory extends java.lang.Object implements EventTableFactory
An alternative implementatation could have been based on "TreeMap<ComparableMultiKey, Set<EventBean>>>", however the following implication arrive - not applicable for range-only lookups (since there the key can be the value itself - not applicable for multiple nested range as ordering not nested - each add/remove and lookup would also need to construct a key object.
Modifier and Type | Field and Description |
---|---|
protected CompositeIndexEnterRemove |
chain |
protected java.lang.String[] |
optionalKeyedProps |
protected java.lang.Class[] |
optKeyCoercedTypes |
protected java.lang.Class[] |
optRangeCoercedTypes |
protected java.lang.String[] |
rangeProps |
protected int |
streamNum |
Constructor and Description |
---|
PropertyCompositeEventTableFactory(int streamNum,
EventType eventType,
java.lang.String[] optionalKeyedProps,
java.lang.Class[] optKeyCoercedTypes,
java.lang.String[] rangeProps,
java.lang.Class[] optRangeCoercedTypes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getEventTableClass() |
protected EventTableOrganization |
getOrganization() |
EventTable[] |
makeEventTables(EventTableFactoryTableIdent tableIdent,
ExprEvaluatorContext exprEvaluatorContext) |
java.lang.String |
toQueryPlan() |
protected final int streamNum
protected final java.lang.String[] optionalKeyedProps
protected final java.lang.String[] rangeProps
protected final CompositeIndexEnterRemove chain
protected final java.lang.Class[] optKeyCoercedTypes
protected final java.lang.Class[] optRangeCoercedTypes
public PropertyCompositeEventTableFactory(int streamNum, EventType eventType, java.lang.String[] optionalKeyedProps, java.lang.Class[] optKeyCoercedTypes, java.lang.String[] rangeProps, java.lang.Class[] optRangeCoercedTypes)
public EventTable[] makeEventTables(EventTableFactoryTableIdent tableIdent, ExprEvaluatorContext exprEvaluatorContext)
makeEventTables
in interface EventTableFactory
public java.lang.Class getEventTableClass()
getEventTableClass
in interface EventTableFactory
public java.lang.String toQueryPlan()
toQueryPlan
in interface EventTableFactory
protected EventTableOrganization getOrganization()