public class LookupInstructionQueryPlanNode extends QueryPlanNode
Constructor and Description |
---|
LookupInstructionQueryPlanNode(int rootStream,
java.lang.String rootStreamName,
int numStreams,
boolean[] requiredPerStream,
java.util.List<LookupInstructionPlan> lookupInstructions,
java.util.List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(java.util.HashSet<TableLookupIndexReqKey> usedIndexes) |
java.util.List<BaseAssemblyNodeFactory> |
getAssemblyInstructionFactories() |
java.util.List<LookupInstructionPlan> |
getLookupInstructions() |
int |
getNumStreams() |
boolean[] |
getRequiredPerStream() |
int |
getRootStream() |
java.lang.String |
getRootStreamName() |
ExecNode |
makeExec(java.lang.String statementName,
int statementId,
java.lang.annotation.Annotation[] annotations,
java.util.Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream,
EventType[] streamTypes,
Viewable[] streamViews,
HistoricalStreamIndexList[] historicalStreamIndexLists,
VirtualDWView[] viewExternal,
java.util.concurrent.locks.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, java.lang.String rootStreamName, int numStreams, boolean[] requiredPerStream, java.util.List<LookupInstructionPlan> lookupInstructions, java.util.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(java.lang.String statementName, int statementId, java.lang.annotation.Annotation[] annotations, java.util.Map<TableLookupIndexReqKey,EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, java.util.concurrent.locks.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(java.util.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 java.lang.String getRootStreamName()
public int getNumStreams()
public java.util.List<LookupInstructionPlan> getLookupInstructions()
public boolean[] getRequiredPerStream()
public java.util.List<BaseAssemblyNodeFactory> getAssemblyInstructionFactories()