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.


Field Summary
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 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()
           
protected  EventTableOrganization getOrganization()
           
 EventTable[] makeEventTables(EventTableFactoryTableIdent tableIdent)
           
 java.lang.String toQueryPlan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamNum

protected final int streamNum

optionalKeyedProps

protected final java.lang.String[] optionalKeyedProps

rangeProps

protected final java.lang.String[] rangeProps

chain

protected final CompositeIndexEnterRemove chain

optKeyCoercedTypes

protected final java.lang.Class[] optKeyCoercedTypes

optRangeCoercedTypes

protected final java.lang.Class[] optRangeCoercedTypes
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

makeEventTables

public EventTable[] makeEventTables(EventTableFactoryTableIdent tableIdent)
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

getOrganization

protected EventTableOrganization getOrganization()

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