|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.QueryPlan.FetchViewNode
public static class QueryPlan.FetchViewNode
The node that fetches a view from the current connection. This is a tree node that has no children, however the child can be created by calling the 'createViewChildNode' method. This node can be removed from a plan tree by calling the 'createViewChildNode' method and substituting this node with the returned child. For a planner that normalizes and optimizes plan trees, this is a useful feature.
Constructor Summary | |
---|---|
QueryPlan.FetchViewNode(TableName table_name,
TableName aliased_as)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Deep clones this query plan. |
QueryPlanNode |
createViewChildNode(QueryContext context)
Returns the QueryPlanNode that resolves to the view. |
void |
debugString(int level,
java.lang.StringBuffer buf)
Writes a textural representation of the node to the StringBuffer at the given indent level. |
java.util.ArrayList |
discoverCorrelatedVariables(int level,
java.util.ArrayList list)
Discovers all the correlated variables in the plan (and plan children) that reference a particular layer. |
java.util.ArrayList |
discoverTableNames(java.util.ArrayList list)
Adds the table name to the list if it's not already in there. |
Table |
evaluate(QueryContext context)
Evaluates the node and returns the result as a Table. |
java.lang.String |
titleString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryPlan.FetchViewNode(TableName table_name, TableName aliased_as)
Method Detail |
---|
public QueryPlanNode createViewChildNode(QueryContext context)
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
discoverTableNames
in interface QueryPlanNode
public Table evaluate(QueryContext context)
QueryPlanNode
evaluate
in interface QueryPlanNode
public java.util.ArrayList discoverCorrelatedVariables(int level, java.util.ArrayList list)
QueryPlanNode
discoverCorrelatedVariables
in interface QueryPlanNode
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
QueryPlanNode
clone
in interface QueryPlanNode
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String titleString()
public void debugString(int level, java.lang.StringBuffer buf)
QueryPlanNode
debugString
in interface QueryPlanNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |