public class LookupInstructionQueryPlanNodeForge extends QueryPlanNodeForge
Constructor and Description |
---|
LookupInstructionQueryPlanNodeForge(int rootStream,
String rootStreamName,
int numStreams,
boolean[] requiredPerStream,
List<LookupInstructionPlanForge> lookupInstructions,
List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(QueryPlanNodeForgeVisitor visitor) |
void |
addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes) |
static void |
assembleFactoriesIntoTree(BaseAssemblyNodeFactory[] factories,
int[] parents,
int[][] children)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
List<BaseAssemblyNodeFactory> |
getAssemblyInstructionFactories() |
List<LookupInstructionPlanForge> |
getLookupInstructions() |
int |
getNumStreams() |
boolean[] |
getRequiredPerStream() |
int |
getRootStream() |
String |
getRootStreamName() |
CodegenExpression |
make(CodegenMethodScope parent,
SAIFFInitializeSymbol symbols,
CodegenClassScope classScope) |
protected void |
print(IndentWriter writer)
Print a long readable format of the query node to the supplied PrintWriter.
|
print
public LookupInstructionQueryPlanNodeForge(int rootStream, String rootStreamName, int numStreams, boolean[] requiredPerStream, List<LookupInstructionPlanForge> 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 void addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes)
addIndexes
in class QueryPlanNodeForge
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope)
public static void assembleFactoriesIntoTree(BaseAssemblyNodeFactory[] factories, int[] parents, int[][] children)
factories
- factoriesparents
- parents indexeschildren
- children indexesprotected void print(IndentWriter writer)
QueryPlanNodeForge
print
in class QueryPlanNodeForge
writer
- is the indentation writer to print topublic int getRootStream()
public String getRootStreamName()
public int getNumStreams()
public List<LookupInstructionPlanForge> getLookupInstructions()
public boolean[] getRequiredPerStream()
public List<BaseAssemblyNodeFactory> getAssemblyInstructionFactories()
public void accept(QueryPlanNodeForgeVisitor visitor)
accept
in class QueryPlanNodeForge
Copyright © 2005–2018. All rights reserved.