Class PropertyCompositeEventTableFactory

java.lang.Object
com.espertech.esper.common.internal.epl.index.composite.PropertyCompositeEventTableFactory
All Implemented Interfaces:
EventTableFactory

public class PropertyCompositeEventTableFactory extends 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<key, TreeMap<key2, Set<EventBean>>, for short. The top level can also be just Map<HashableMultiKey, TreeMap...>. 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<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.