Package com.mckoi.database
Class QueryPlan.SubsetNode
java.lang.Object
com.mckoi.database.QueryPlan.SingleQueryPlanNode
com.mckoi.database.QueryPlan.SubsetNode
- All Implemented Interfaces:
QueryPlanNode
,Serializable
,Cloneable
- Enclosing class:
- QueryPlan
The node for finding a subset and renaming the columns of the results in
the child node.
- See Also:
-
Field Summary
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child
-
Constructor Summary
ConstructorsConstructorDescriptionSubsetNode
(QueryPlanNode child, Variable[] original_columns, Variable[] new_column_names) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deep clone.evaluate
(QueryContext context) Evaluates the node and returns the result as a Table.Variable[]
Returns the list of new column names that represent the new columns in this subset.Variable[]
Returns the list of original columns that represent the mappings from the columns in this subset.void
setGivenName
(TableName name) Sets the given table name of the resultant table.Methods inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child, debugString, discoverCorrelatedVariables, discoverTableNames
-
Constructor Details
-
SubsetNode
-
-
Method Details
-
evaluate
Description copied from interface:QueryPlanNode
Evaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables -
setGivenName
Sets the given table name of the resultant table. This is intended if we want to create a sub-query that has an aliased table name. -
getOriginalColumns
Returns the list of original columns that represent the mappings from the columns in this subset. -
getNewColumnNames
Returns the list of new column names that represent the new columns in this subset. -
clone
Description copied from class:QueryPlan.SingleQueryPlanNode
Deep clone.- Specified by:
clone
in interfaceQueryPlanNode
- Overrides:
clone
in classQueryPlan.SingleQueryPlanNode
- Throws:
CloneNotSupportedException
-
titleString
- Overrides:
titleString
in classQueryPlan.SingleQueryPlanNode
-