com.espertech.esper.epl.join.table
Class PropertyCompositeEventTableFactory
java.lang.Object
com.espertech.esper.epl.join.table.PropertyCompositeEventTableFactory
- All Implemented Interfaces:
- EventTableFactory
public class PropertyCompositeEventTableFactory
- extends java.lang.Object
- implements EventTableFactory
For use when the index comprises of either two or more ranges or a unique key in combination with a range.
Organizes into a TreeMap>, for short. The top level can also be just Map.
Expected at least either (A) one key and one range or (B) zero keys and 2 ranges.
An alternative implementatation could have been based on "TreeMap>>", 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.
Constructor Summary |
PropertyCompositeEventTableFactory(int streamNum,
EventType eventType,
java.lang.String[] optionalKeyedProps,
java.lang.Class[] optKeyCoercedTypes,
java.lang.String[] rangeProps,
java.lang.Class[] optRangeCoercedTypes)
Ctor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyCompositeEventTableFactory
public PropertyCompositeEventTableFactory(int streamNum,
EventType eventType,
java.lang.String[] optionalKeyedProps,
java.lang.Class[] optKeyCoercedTypes,
java.lang.String[] rangeProps,
java.lang.Class[] optRangeCoercedTypes)
- Ctor.
- Parameters:
streamNum
- - the stream number that is indexedeventType
- - types of events indexedoptRangeCoercedTypes
- - property types
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