public class PropertyCompositeEventTableFactory extends 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 EventPropertyValueGetter |
hashGetter |
protected String[] |
optionalKeyedProps |
protected Class[] |
optKeyCoercedTypes |
protected Class[] |
optRangeCoercedTypes |
protected EventPropertyValueGetter[] |
rangeGetters |
protected String[] |
rangeProps |
protected int |
streamNum |
Constructor and Description |
---|
PropertyCompositeEventTableFactory(int streamNum,
String[] optionalKeyedProps,
Class[] optKeyCoercedTypes,
EventPropertyValueGetter hashGetter,
String[] rangeProps,
Class[] optRangeCoercedTypes,
EventPropertyValueGetter[] rangeGetters) |
Modifier and Type | Method and Description |
---|---|
CompositeIndexEnterRemove |
getChain() |
Class |
getEventTableClass() |
protected EventTableOrganization |
getOrganization() |
EventTable[] |
makeEventTables(AgentInstanceContext agentInstanceContext,
Integer subqueryNumber) |
String |
toQueryPlan() |
protected final int streamNum
protected final String[] optionalKeyedProps
protected final Class[] optKeyCoercedTypes
protected final EventPropertyValueGetter hashGetter
protected final String[] rangeProps
protected final Class[] optRangeCoercedTypes
protected final EventPropertyValueGetter[] rangeGetters
protected final CompositeIndexEnterRemove chain
public PropertyCompositeEventTableFactory(int streamNum, String[] optionalKeyedProps, Class[] optKeyCoercedTypes, EventPropertyValueGetter hashGetter, String[] rangeProps, Class[] optRangeCoercedTypes, EventPropertyValueGetter[] rangeGetters)
public EventTable[] makeEventTables(AgentInstanceContext agentInstanceContext, Integer subqueryNumber)
makeEventTables
in interface EventTableFactory
public Class getEventTableClass()
getEventTableClass
in interface EventTableFactory
public CompositeIndexEnterRemove getChain()
public String toQueryPlan()
toQueryPlan
in interface EventTableFactory
protected EventTableOrganization getOrganization()
Copyright © 2005–2018. All rights reserved.