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,
ExprNode exprNode)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndexes(java.util.HashSet<java.lang.String> usedIndexes) |
ExecNode |
makeExec(java.lang.String statementName,
java.lang.String statementId,
java.lang.annotation.Annotation[] annotations,
java.util.Map<java.lang.String,EventTable>[] indexesPerStream,
EventType[] streamTypes,
Viewable[] streamViews,
HistoricalStreamIndexList[] historicalStreamIndexLists,
VirtualDWView[] viewExternal)
Make execution node from this specification.
|
HistoricalTableLookupStrategy |
makeOuterJoinStategy(Viewable[] streamViews,
int pollingStreamNum,
HistoricalStreamIndexList[] historicalStreamIndexLists)
Returns the table lookup strategy for use in outer joins.
|
print
public HistoricalDataPlanNode(int streamNum, int rootStreamNum, int lookupStreamNum, int numStreams, ExprNode exprNode)
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 joinexprNode
- outer join expression node or null if none definedpublic ExecNode makeExec(java.lang.String statementName, java.lang.String statementId, java.lang.annotation.Annotation[] annotations, java.util.Map<java.lang.String,EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal)
QueryPlanNode
makeExec
in class QueryPlanNode
indexesPerStream
- - tables build for each streamstreamTypes
- - event type of each streamstreamViews
- - viewable per stream for access to historical datahistoricalStreamIndexLists
- index management for historical streamsviewExternal
- @return execution node matching specpublic void addIndexes(java.util.HashSet<java.lang.String> 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 stream