public class HistoricalDataPlanNode extends QueryPlanNode
Translates into a particular execution for use in regular and outer joins.
Constructor and Description |
---|
HistoricalDataPlanNode(int streamNum,
int rootStreamNum,
int lookupStreamNum,
int numStreams,
ExprEvaluator outerJoinExprEval)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(HashSet<TableLookupIndexReqKey> usedIndexes) |
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.
|
HistoricalTableLookupStrategy |
makeOuterJoinStategy(Viewable[] streamViews,
int pollingStreamNum,
HistoricalStreamIndexList[] historicalStreamIndexLists)
Returns the table lookup strategy for use in outer joins.
|
protected void |
print(IndentWriter writer)
Print a long readable format of the query node to the supplied PrintWriter.
|
print
public HistoricalDataPlanNode(int streamNum, int rootStreamNum, int lookupStreamNum, int numStreams, ExprEvaluator outerJoinExprEval)
streamNum
- the historical stream numrootStreamNum
- the stream number of the query plan providing incoming eventslookupStreamNum
- the stream that provides polling/lookup eventsnumStreams
- number of streams in joinouterJoinExprEval
- outer join expression node or null if none definedpublic 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
public HistoricalTableLookupStrategy makeOuterJoinStategy(Viewable[] streamViews, int pollingStreamNum, HistoricalStreamIndexList[] historicalStreamIndexLists)
streamViews
- all views in joinpollingStreamNum
- the stream number of the stream looking up into the historicalhistoricalStreamIndexLists
- the index management for the historical streamprotected void print(IndentWriter writer)
QueryPlanNode
print
in class QueryPlanNode
writer
- is the indentation writer to print to