com.espertech.esper.epl.join.table
Class PropertyCompositeEventTableFactory

java.lang.Object
  extended by 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.
 
Method Summary
 java.lang.Class getEventTableClass()
           
 EventTable makeEventTable()
           
 java.lang.String toQueryPlan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 indexed
eventType - - types of events indexed
optRangeCoercedTypes - - property types
Method Detail

makeEventTable

public EventTable makeEventTable()
Specified by:
makeEventTable 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

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com