public class LookupInstructionPlan extends Object
Constructor and Description |
---|
LookupInstructionPlan(int fromStream,
String fromStreamName,
int[] toStreams,
TableLookupPlan[] lookupPlans,
HistoricalDataPlanNode[] historicalPlans,
boolean[] requiredPerStream)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes) |
int |
getFromStream() |
String |
getFromStreamName() |
HistoricalDataPlanNode[] |
getHistoricalPlans() |
TableLookupPlan[] |
getLookupPlans() |
boolean[] |
getRequiredPerStream() |
int[] |
getToStreams() |
LookupInstructionExec |
makeExec(String statementName,
int statementId,
Annotation[] annotations,
Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream,
EventType[] streamTypes,
Viewable[] streamViews,
HistoricalStreamIndexList[] historicalStreamIndexLists,
VirtualDWView[] viewExternal)
Constructs the executable from the plan.
|
void |
print(IndentWriter writer)
Output the planned instruction.
|
public LookupInstructionPlan(int fromStream, String fromStreamName, int[] toStreams, TableLookupPlan[] lookupPlans, HistoricalDataPlanNode[] historicalPlans, boolean[] requiredPerStream)
fromStream
- - the stream supplying the lookup eventfromStreamName
- - the stream name supplying the lookup eventtoStreams
- - the set of streams to look up inlookupPlans
- - the plan to use for each stream to look up inrequiredPerStream
- - indicates which of the lookup streams are required to build a result and which are nothistoricalPlans
- - plans for use with historical streamspublic LookupInstructionExec makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal)
statementName
- statement namestatementId
- statement idannotations
- annotationsindexesPerStream
- is the index objects for use in lookupsstreamTypes
- is the types of each streamstreamViews
- the viewable representing each streamhistoricalStreamIndexLists
- index management for historical streams @return executable instructionviewExternal
- virtual data windowpublic void print(IndentWriter writer)
writer
- to output topublic void addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes)
public int getFromStream()
public String getFromStreamName()
public int[] getToStreams()
public TableLookupPlan[] getLookupPlans()
public boolean[] getRequiredPerStream()
public HistoricalDataPlanNode[] getHistoricalPlans()