|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.QueryPlan.SingleRowTableNode
public static class QueryPlan.SingleRowTableNode
A node for creating a table with a single row. This table is useful for queries that have no underlying row. For example, a pure functional table expression.
Constructor Summary | |
---|---|
QueryPlan.SingleRowTableNode()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Deep clones this query plan. |
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)
Discovers a list of TableName that represent the sources that this query requires to complete itself. |
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.SingleRowTableNode()
Method Detail |
---|
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
QueryPlanNode
The resultant list will not contain the same table name more than once. The resultant list contains TableName objects.
NOTE, if a table is aliased, the unaliased name is returned.
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 |