public class LookupInstructionQueryPlanNode extends QueryPlanNode
Constructor and Description |
---|
LookupInstructionQueryPlanNode(int rootStream,
String rootStreamName,
int numStreams,
boolean[] requiredPerStream,
List<LookupInstructionPlan> lookupInstructions,
List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes) |
List<BaseAssemblyNodeFactory> |
getAssemblyInstructionFactories() |
List<LookupInstructionPlan> |
getLookupInstructions() |
int |
getNumStreams() |
boolean[] |
getRequiredPerStream() |
int |
getRootStream() |
String |
getRootStreamName() |
ExecNode |
makeExec(String statementName,
int statementId,
Annotation[] annotations,
Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream,
EventType[] streamTypes,
Viewable[] streamViews,
HistoricalStreamIndexList[] historicalStreamIndexLists,
VirtualDWView[] viewExternal,
Lock[] tableSecondaryIndexLocks)
Make execution node from this specification.
|
protected void |
print(IndentWriter writer)
Print a long readable format of the query node to the supplied PrintWriter.
|
print
public LookupInstructionQueryPlanNode(int rootStream, String rootStreamName, int numStreams, boolean[] requiredPerStream, List<LookupInstructionPlan> lookupInstructions, List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
rootStream
- is the stream supplying the lookup eventrootStreamName
- is the name of the stream supplying the lookup eventnumStreams
- is the number of streamslookupInstructions
- is a list of lookups to performrequiredPerStream
- indicates which streams are required and which are optional in the lookupassemblyInstructionFactories
- is the bottom-up assembly factory nodes to assemble a lookup result nodespublic ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks)
QueryPlanNode
makeExec
in class QueryPlanNode
statementName
- statement namestatementId
- statement idannotations
- annotationsindexesPerStream
- - tables build for each streamstreamTypes
- - event type of each streamstreamViews
- - viewable per stream for access to historical datahistoricalStreamIndexLists
- index management for historical streamsviewExternal
- viewtableSecondaryIndexLocks
- lockspublic void addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes)
addIndexes
in class QueryPlanNode
protected void print(IndentWriter writer)
QueryPlanNode
print
in class QueryPlanNode
writer
- is the indentation writer to print topublic int getRootStream()
public String getRootStreamName()
public int getNumStreams()
public List<LookupInstructionPlan> getLookupInstructions()
public boolean[] getRequiredPerStream()
public List<BaseAssemblyNodeFactory> getAssemblyInstructionFactories()