Package com.mckoi.database
Class QueryPlan.SingleRowTableNode
java.lang.Object
com.mckoi.database.QueryPlan.SingleRowTableNode
- All Implemented Interfaces:
QueryPlanNode
,Serializable
,Cloneable
- Enclosing class:
QueryPlan
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deep clones this query plan.void
debugString
(int level, StringBuffer buf) Writes a textural representation of the node to the StringBuffer at the given indent level.discoverCorrelatedVariables
(int level, ArrayList list) Discovers all the correlated variables in the plan (and plan children) that reference a particular layer.discoverTableNames
(ArrayList list) Discovers a list of TableName that represent the sources that this query requires to complete itself.evaluate
(QueryContext context) Evaluates the node and returns the result as a Table.
-
Constructor Details
-
SingleRowTableNode
public SingleRowTableNode()
-
-
Method Details
-
discoverTableNames
Description copied from interface:QueryPlanNode
Discovers a list of TableName that represent the sources that this query requires to complete itself. For example, if this is a query plan of two joined table, the fully resolved names of both tables are returned.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.
- Specified by:
discoverTableNames
in interfaceQueryPlanNode
-
evaluate
Description copied from interface:QueryPlanNode
Evaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables- Specified by:
evaluate
in interfaceQueryPlanNode
-
clone
Description copied from interface:QueryPlanNode
Deep clones this query plan.- Specified by:
clone
in interfaceQueryPlanNode
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
titleString
-
debugString
Description copied from interface:QueryPlanNode
Writes a textural representation of the node to the StringBuffer at the given indent level.- Specified by:
debugString
in interfaceQueryPlanNode
-