Uses of Class
edu.caltech.nanodb.queryast.SelectClause
-
Packages that use SelectClause Package Description edu.caltech.nanodb.commands This package contains the classes that represent the commands that the NanoSQL database recognizes.edu.caltech.nanodb.expressions This package contains classes for representing and evaluating arithmetic and logical expressions.edu.caltech.nanodb.queryast edu.caltech.nanodb.queryeval This package contains the query-evaluation components of the database. -
-
Uses of SelectClause in edu.caltech.nanodb.commands
Fields in edu.caltech.nanodb.commands declared as SelectClause Modifier and Type Field Description private SelectClause
InsertCommand. selClause
When the insert command is of the formINSERT ...
private SelectClause
SelectCommand. selClause
This object contains all the details of the top-level select clause, including any subqueries, that is going to be evaluated.private SelectClause
CreateViewCommand. selectClause
Methods in edu.caltech.nanodb.commands that return SelectClause Modifier and Type Method Description SelectClause
InsertCommand. getSelectClause()
SelectClause
SelectCommand. getSelectClause()
Returns the root select-clause for this select command.Constructors in edu.caltech.nanodb.commands with parameters of type SelectClause Constructor Description CreateViewCommand(java.lang.String viewName, SelectClause selectClause)
InsertCommand(java.lang.String tableName, java.util.List<java.lang.String> colNames, SelectClause selClause)
Constructs a new insert command for INSERT ...SelectCommand(SelectClause selClause)
-
Uses of SelectClause in edu.caltech.nanodb.expressions
Fields in edu.caltech.nanodb.expressions declared as SelectClause Modifier and Type Field Description protected SelectClause
SubqueryOperator. subquery
This is the parsed representation of the subquery that the operator uses for its operation.Methods in edu.caltech.nanodb.expressions that return SelectClause Modifier and Type Method Description SelectClause
SubqueryOperator. getSubquery()
Returns the parsed representation of the subquery that is used by this operator.Constructors in edu.caltech.nanodb.expressions with parameters of type SelectClause Constructor Description ExistsOperator(SelectClause subquery)
InSubqueryOperator(Expression expr, SelectClause subquery)
InSubqueryOperator(java.util.List<Expression> exprList, SelectClause subquery)
ScalarSubquery(SelectClause subquery)
-
Uses of SelectClause in edu.caltech.nanodb.queryast
Fields in edu.caltech.nanodb.queryast declared as SelectClause Modifier and Type Field Description private SelectClause
FromClause. derivedTable
If the FROM clause specifies a nested SELECT command with an alias, this field holds the nested query.private SelectClause
SelectClause. parentSelect
The parent of this select-clause, if it is a nested subquery;null
otherwise.private SelectClause
SelectValue. scalarSubquery
If this select-value is a scalar subquery then this field references the subquery expression.private SelectClause
SubquerySchemaComputer. selectClause
This is the parent query that may contain subqueries.Fields in edu.caltech.nanodb.queryast with type parameters of type SelectClause Modifier and Type Field Description private java.util.HashMap<ColumnName,SelectClause>
SelectClause. correlatedWith
If this query is correlated with one or more enclosing queries, this will contain column names, and the corresponding references to the enclosing queries.Methods in edu.caltech.nanodb.queryast that return SelectClause Modifier and Type Method Description SelectClause
SelectClause. getParentSelect()
Returns the parent of this query if it is a subquery;null
otherwise.SelectClause
SelectValue. getScalarSubquery()
SelectClause
FromClause. getSelectClause()
Returns the select clause for a derived table.static SelectClause
QueryUtils. makeSelectStar(java.lang.String tableName)
Given a table name, this method constructs a query AST for the SQL "SELECT * FROM table".static SelectClause
QueryUtils. makeSelectStar(java.lang.String tableName, Expression whereExpr)
Given a table name and an optional WHERE predicate, this method constructs a query AST for the SQL "SELECT * FROM table [WHERE expr]".Methods in edu.caltech.nanodb.queryast with parameters of type SelectClause Modifier and Type Method Description Schema
SelectClause. computeSchema(TableManager tableManager, SelectClause parentSelect)
This method computes the resulting schema from this query, and in the process it performs various semantic checks as well.Constructors in edu.caltech.nanodb.queryast with parameters of type SelectClause Constructor Description FromClause(SelectClause derivedTable, java.lang.String aliasName)
Construct a new FROM clause of typeFromClause.ClauseType.SELECT_SUBQUERY
.SubquerySchemaComputer(SelectClause selectClause, TableManager tableManager)
-
Uses of SelectClause in edu.caltech.nanodb.queryeval
Fields in edu.caltech.nanodb.queryeval with type parameters of type SelectClause Modifier and Type Field Description private java.util.HashMap<java.lang.String,SelectClause>
Definitions. viewDefinitions
A collection of view definitions from the query, specified as WITH clauses.Methods in edu.caltech.nanodb.queryeval with parameters of type SelectClause Modifier and Type Method Description PlanNode
CostBasedJoinPlanner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.PlanNode
Planner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.PlanNode
SimplestPlanner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.Method parameters in edu.caltech.nanodb.queryeval with type arguments of type SelectClause Modifier and Type Method Description PlanNode
CostBasedJoinPlanner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.PlanNode
Planner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.PlanNode
SimplestPlanner. makePlan(SelectClause selClause, java.util.List<SelectClause> enclosingSelects)
Returns the root of a plan tree suitable for executing the specified query.SelectNode
CostBasedJoinPlanner. makeSimpleSelect(java.lang.String tableName, Expression predicate, java.util.List<SelectClause> enclosingSelects)
Constructs a simple select plan that reads directly from a table, with an optional predicate for selecting rows.SelectNode
Planner. makeSimpleSelect(java.lang.String tableName, Expression predicate, java.util.List<SelectClause> enclosingSelects)
Returns a plan tree for executing a simple select against a single table, whose tuples can also be used for updating and deletion.SelectNode
SimplestPlanner. makeSimpleSelect(java.lang.String tableName, Expression predicate, java.util.List<SelectClause> enclosingSelects)
Constructs a simple select plan that reads directly from a table, with an optional predicate for selecting rows.
-