com.espertech.esper.epl.join.plan
Class IndexedTableLookupPlan

java.lang.Object
  extended by com.espertech.esper.epl.join.plan.TableLookupPlan
      extended by com.espertech.esper.epl.join.plan.IndexedTableLookupPlan

public class IndexedTableLookupPlan
extends TableLookupPlan

Plan to perform an indexed table lookup.


Constructor Summary
IndexedTableLookupPlan(int lookupStream, int indexedStream, int indexNum, String[] keyProperties)
          Ctor.
 
Method Summary
protected  String[] getKeyProperties()
          Returns property names to use for lookup in index.
 TableLookupStrategy makeStrategy(EventTable[][] indexesPerStream, EventType[] eventTypes)
          Instantiates the lookup plan into a execution strategy for the lookup.
 String toString()
           
 
Methods inherited from class com.espertech.esper.epl.join.plan.TableLookupPlan
getIndexedStream, getIndexNum, getLookupStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedTableLookupPlan

public IndexedTableLookupPlan(int lookupStream,
                              int indexedStream,
                              int indexNum,
                              String[] keyProperties)
Ctor.

Parameters:
lookupStream - - stream that generates event to look up for
indexedStream - - stream to index table lookup
indexNum - - index number for the table containing the full unindexed contents
keyProperties - - properties to use in lookup event to access index
Method Detail

getKeyProperties

protected String[] getKeyProperties()
Returns property names to use for lookup in index.

Returns:
property names.

makeStrategy

public TableLookupStrategy makeStrategy(EventTable[][] indexesPerStream,
                                        EventType[] eventTypes)
Description copied from class: TableLookupPlan
Instantiates the lookup plan into a execution strategy for the lookup.

Specified by:
makeStrategy in class TableLookupPlan
Parameters:
indexesPerStream - - tables for each stream
eventTypes - - types of events in stream
Returns:
lookup strategy instance

toString

public String toString()
Overrides:
toString in class TableLookupPlan

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com