net.esper.eql.join.plan
Class LookupInstructionPlan

java.lang.Object
  extended by net.esper.eql.join.plan.LookupInstructionPlan

public class LookupInstructionPlan
extends Object

Plan for lookup using a from-stream event looking up one or more to-streams using a specified lookup plan for each to-stream.


Constructor Summary
LookupInstructionPlan(int fromStream, String fromStreamName, int[] toStreams, TableLookupPlan[] lookupPlans, boolean[] requiredPerStream)
          Ctor.
 
Method Summary
 LookupInstructionExec makeExec(EventTable[][] indexesPerStream, EventType[] streamTypes)
          Constructs the executable from the plan.
 void print(IndentWriter writer)
          Output the planned instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupInstructionPlan

public LookupInstructionPlan(int fromStream,
                             String fromStreamName,
                             int[] toStreams,
                             TableLookupPlan[] lookupPlans,
                             boolean[] requiredPerStream)
Ctor.

Parameters:
fromStream - - the stream supplying the lookup event
fromStreamName - - the stream name supplying the lookup event
toStreams - - the set of streams to look up in
lookupPlans - - the plan to use for each stream to look up in
requiredPerStream - - indicates which of the lookup streams are required to build a result and which are not
Method Detail

makeExec

public LookupInstructionExec makeExec(EventTable[][] indexesPerStream,
                                      EventType[] streamTypes)
Constructs the executable from the plan.

Parameters:
indexesPerStream - is the index objects for use in lookups
streamTypes - is the types of each stream
Returns:
executable instruction

print

public void print(IndentWriter writer)
Output the planned instruction.

Parameters:
writer - to output to

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