Uses of Class
edu.caltech.nanodb.expressions.Expression
-
Packages that use Expression 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.functions This package contains the abstractions for supporting simple functions, aggregate functions, and table-returning functions in NanoDB.edu.caltech.nanodb.plannodes This package contains classes for representing query execution plans, as well as analyzing their costs.edu.caltech.nanodb.queryast edu.caltech.nanodb.queryeval This package contains the query-evaluation components of the database.edu.caltech.nanodb.relations This package contains the basic data-types for representing relations in NanoDB.edu.caltech.nanodb.sqlparse edu.caltech.nanodb.storage This package contains the classes for the Storage Manager, which is responsible for how data is stored in and retrieved from database files. -
-
Uses of Expression in edu.caltech.nanodb.commands
Fields in edu.caltech.nanodb.commands declared as Expression Modifier and Type Field Description private Expression
UpdateValue. expression
The expression that will be computed and stored.private Expression
SetPropertyCommand. valueExpr
The value to set the property to.private Expression
DeleteCommand. whereExpr
If a WHERE expression is specified, this field will refer to the expression to be evaluated.private Expression
UpdateCommand. whereExpr
If a WHERE expression is specified, this field will refer to the expression to be evaluated.Fields in edu.caltech.nanodb.commands with type parameters of type Expression Modifier and Type Field Description private java.util.List<Expression>
InsertCommand. values
When the insert command is of the formINSERT ...
Methods in edu.caltech.nanodb.commands that return Expression Modifier and Type Method Description Expression
UpdateValue. getExpression()
Returns the expression for generating the update-value.Expression
DeleteCommand. getWhereExpr()
Returns the WHERE predicate for this delete command, if specified, ornull
if there is no WHERE predicate.Expression
UpdateCommand. getWhereExpr()
Methods in edu.caltech.nanodb.commands that return types with arguments of type Expression Modifier and Type Method Description java.util.List<Expression>
InsertCommand. getValues()
Methods in edu.caltech.nanodb.commands with parameters of type Expression Modifier and Type Method Description void
UpdateCommand. addValue(java.lang.String colName, Expression valueExpr)
void
UpdateCommand. setWhereExpr(Expression whereExpr)
Sets the expression for the WHERE clause.Constructors in edu.caltech.nanodb.commands with parameters of type Expression Constructor Description DeleteCommand(java.lang.String tableName, Expression whereExpr)
Constructs a new delete command.SetPropertyCommand(java.lang.String propertyName, Expression valueExpr)
UpdateValue(java.lang.String colName, Expression e)
Construct an update-value object from a column name and an expression. -
Uses of Expression in edu.caltech.nanodb.expressions
Subclasses of Expression in edu.caltech.nanodb.expressions Modifier and Type Class Description class
ArithmeticOperator
This class implements simple binary arithmetic operations.class
BooleanOperator
This class provides the standard Boolean logical operators AND, OR, and NOT, for two or more terms (or exactly one term, in the case of NOT).class
ColumnValue
This expression class represents the value of a tuple column.class
CompareOperator
This class implements simple binary comparison operations.class
ExistsOperator
This class implements the EXISTS (subquery) operator.class
FunctionCall
This class represents all kinds of function-call expressions, including simple function calls, aggregate function calls, and table-returning function calls.class
InSubqueryOperator
This class implements the expr IN (subquery) operator.class
InValuesOperator
This class implements the expr IN (values) operator.class
IsNullOperator
class
LiteralValue
This expression class represents literal values.class
NegateOperator
This class implements unary negation.class
ScalarSubquery
This class represents a scalar subquery embedded in another query's predicate.class
StringMatchOperator
This class implements string matching operations.class
SubqueryOperator
This class is the superclass of all expressions that can hold subqueries, such as the IN operator, the EXISTS operator, and scalar subqueries.Fields in edu.caltech.nanodb.expressions declared as Expression Modifier and Type Field Description (package private) Expression
InValuesOperator. expr
The expression to check against the set on the righthand side of the IN operator.private Expression
IsNullOperator. expr
The expression to evaluate for "nullness".private Expression
NegateOperator. expr
The expression being negated.private Expression
OrderByExpression. expression
The expression that the results should be ordered by.private Expression
ArithmeticOperator. leftExpr
The left expression in the comparison.private Expression
CompareOperator. leftExpr
The left expression in the comparison.(package private) Expression
StringMatchOperator. leftExpr
The left expression in the comparison.private Expression
ArithmeticOperator. rightExpr
The right expression in the comparison.private Expression
CompareOperator. rightExpr
The right expression in the comparison.(package private) Expression
StringMatchOperator. rightExpr
The right expression in the comparison.Fields in edu.caltech.nanodb.expressions with type parameters of type Expression Modifier and Type Field Description private java.util.ArrayList<Expression>
FunctionCall. args
The list of one or more arguments for the function call.private java.util.ArrayList<Expression>
InSubqueryOperator. exprList
The list of expressions to check against the set on the righthand side of the IN operator.private java.util.ArrayList<Expression>
BooleanOperator. terms
The list of one or more terms in this expression.(package private) java.util.ArrayList<Expression>
InValuesOperator. values
If the righthand side of the IN operator is a list of values (expressions, specifically), this is the list of values.Methods in edu.caltech.nanodb.expressions that return Expression Modifier and Type Method Description Expression
Expression. duplicate()
Returns a deep copy of this expression.Expression
OrderByExpression. getExpression()
Returns the expression that results will be sorted onExpression
CompareOperator. getLeftExpression()
Returns the left expression.Expression
StringMatchOperator. getLeftExpression()
Returns the left expression.Expression
CompareOperator. getRightExpression()
Returns the right expression.Expression
StringMatchOperator. getRightExpression()
Returns the right expression.Expression
BooleanOperator. getTerm(int i)
Expression
Expression.SymbolFinder. leave(Expression e)
Expression
ExpressionProcessor. leave(Expression node)
This method is called when expression-traversal is leaving a particular node in the expression tree.static Expression
PredicateUtils. makePredicate(Expression... conjuncts)
static Expression
PredicateUtils. makePredicate(java.util.Collection<Expression> conjuncts)
This helper function takes a collection of conjuncts that should comprise a predicate, and creates a predicate for evaluating these conjuncts.Expression
ArithmeticOperator. simplify()
Simplifies an arithmetic expression, computing as much of the expression as possible.Expression
BooleanOperator. simplify()
Simplifies a Boolean expression by eliminating and de-nesting as much of the expression as possible.Expression
ColumnValue. simplify()
Column values cannot be simplified any further, so this method just returns the expression it's called on.Expression
Expression. simplify()
Returns an Expression reference to a (possibly) simplified version of this expression.Expression
IsNullOperator. simplify()
Simplifies this expression, computing as much of the expression as possible.Expression
LiteralValue. simplify()
Literal values cannot be simplified any further, so this method just returns the expression it's called on.Expression
NegateOperator. simplify()
Simplifies an arithmetic expression, computing as much of the expression as possible.Expression
ArithmeticOperator. traverse(ExpressionProcessor p)
Expression
BooleanOperator. traverse(ExpressionProcessor p)
Expression
ColumnValue. traverse(ExpressionProcessor p)
Expression
CompareOperator. traverse(ExpressionProcessor p)
Expression
ExistsOperator. traverse(ExpressionProcessor p)
abstract Expression
Expression. traverse(ExpressionProcessor p)
This method allows the entire expression tree to be traversed node by node, either for analysis or for transformation.Expression
FunctionCall. traverse(ExpressionProcessor p)
Expression
InSubqueryOperator. traverse(ExpressionProcessor p)
Expression
InValuesOperator. traverse(ExpressionProcessor p)
Expression
IsNullOperator. traverse(ExpressionProcessor p)
Expression
LiteralValue. traverse(ExpressionProcessor p)
Expression
NegateOperator. traverse(ExpressionProcessor p)
Expression
ScalarSubquery. traverse(ExpressionProcessor p)
Expression
StringMatchOperator. traverse(ExpressionProcessor p)
Methods in edu.caltech.nanodb.expressions that return types with arguments of type Expression Modifier and Type Method Description private java.util.List<Expression>
BooleanOperator. _getTermsReferencingAllTables(java.lang.String[] tableNames, boolean remove)
This is a private helper function used by both theBooleanOperator.getTermsReferencingAllTables(java.lang.String...)
andBooleanOperator.removeTermsReferencingAllTables(java.lang.String...)
methods.java.util.List<Expression>
FunctionCall. getArguments()
java.util.List<Expression>
BooleanOperator. getTermsReferencingAllTables(java.lang.String... tableNames)
This method finds and returns a list of all terms in this Boolean expression that reference the exact set of tables specified in the arguments.java.util.ArrayList<Expression>
InValuesOperator. getValues()
If the IN operation has a list of values on the righthand side, this will be the list of values.java.util.List<Expression>
BooleanOperator. removeTermsReferencingAllTables(java.lang.String... tableNames)
This method finds, removes, and returns a list of all terms in this Boolean expression that reference the exact set of tables specified in the arguments.Methods in edu.caltech.nanodb.expressions with parameters of type Expression Modifier and Type Method Description void
BooleanOperator. addTerm(Expression term)
static void
PredicateUtils. collectConjuncts(Expression expr, java.util.Collection<Expression> conjuncts)
This method takes a predicate expr and stores all of its conjuncts into the specified collection of conjuncts.void
Expression.SymbolFinder. enter(Expression e)
void
ExpressionProcessor. enter(Expression node)
This method is called when expression-traversal is entering a particular node in the expression tree.Expression
Expression.SymbolFinder. leave(Expression e)
Expression
ExpressionProcessor. leave(Expression node)
This method is called when expression-traversal is leaving a particular node in the expression tree.static Expression
PredicateUtils. makePredicate(Expression... conjuncts)
Method parameters in edu.caltech.nanodb.expressions with type arguments of type Expression Modifier and Type Method Description static void
PredicateUtils. collectConjuncts(Expression expr, java.util.Collection<Expression> conjuncts)
This method takes a predicate expr and stores all of its conjuncts into the specified collection of conjuncts.static void
PredicateUtils. findExprsUsingSchemas(java.util.Collection<Expression> srcExprs, boolean remove, java.util.Collection<Expression> dstExprs, Schema... schemas)
This method takes a collection of expressions, and finds those expressions that can be evaluated solely against the provided schemas.static Expression
PredicateUtils. makePredicate(java.util.Collection<Expression> conjuncts)
This helper function takes a collection of conjuncts that should comprise a predicate, and creates a predicate for evaluating these conjuncts.Constructors in edu.caltech.nanodb.expressions with parameters of type Expression Constructor Description ArithmeticOperator(ArithmeticOperator.Type type, Expression lhs, Expression rhs)
CompareOperator(CompareOperator.Type type, Expression lhs, Expression rhs)
FunctionCall(java.lang.String funcName, boolean distinct, Expression... args)
InSubqueryOperator(Expression expr, SelectClause subquery)
InValuesOperator(Expression expr, java.util.ArrayList<Expression> values)
IsNullOperator(Expression expr, boolean invert)
NegateOperator(Expression e)
OrderByExpression(Expression expression)
Initialize a new order-by object with the specified expression.OrderByExpression(Expression expression, boolean ascending)
Initialize a new order-by object with the specified expression and order.StringMatchOperator(StringMatchOperator.Type type, Expression lhs, Expression rhs)
Constructor parameters in edu.caltech.nanodb.expressions with type arguments of type Expression Constructor Description BooleanOperator(BooleanOperator.Type type, java.util.Collection<Expression> terms)
FunctionCall(java.lang.String funcName, boolean distinct, java.util.ArrayList<Expression> args)
InSubqueryOperator(java.util.List<Expression> exprList, SelectClause subquery)
InValuesOperator(Expression expr, java.util.ArrayList<Expression> values)
-
Uses of Expression in edu.caltech.nanodb.functions
Method parameters in edu.caltech.nanodb.functions with type arguments of type Expression Modifier and Type Method Description java.lang.Object
Abs. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ArcCos. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ArcSin. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ArcTan. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ArcTan2. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Ceil. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Coalesce. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Concat. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Cos. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Floor. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Greatest. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
If. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
IfNull. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Least. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
NullIf. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Pow. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ReadPerfCounter. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
ResetPerfCounter. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Round. evaluate(Environment env, java.util.List<Expression> args)
abstract java.lang.Object
SimpleFunction. evaluate(Environment env, java.util.List<Expression> args)
Evaluates the function.java.lang.Object
Sin. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Sqrt. evaluate(Environment env, java.util.List<Expression> args)
java.lang.Object
Tan. evaluate(Environment env, java.util.List<Expression> args)
ColumnType
Abs. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ArcCos. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ArcSin. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ArcTan. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ArcTan2. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Ceil. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Coalesce. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Concat. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Cos. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
CountAggregate. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
CountStar. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Floor. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Greatest. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
If. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
IfNull. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Least. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
MinMaxAggregate. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
NullIf. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Pow. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ReadPerfCounter. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
ResetPerfCounter. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Round. getReturnType(java.util.List<Expression> args, Schema schema)
abstract ColumnType
ScalarFunction. getReturnType(java.util.List<Expression> args, Schema schema)
Returns the column type of the resulting column after applying the function.ColumnType
Sin. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Sqrt. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
StdDevVarAggregate. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
SumAvgAggregate. getReturnType(java.util.List<Expression> args, Schema schema)
ColumnType
Tan. getReturnType(java.util.List<Expression> args, Schema schema)
-
Uses of Expression in edu.caltech.nanodb.plannodes
Fields in edu.caltech.nanodb.plannodes declared as Expression Modifier and Type Field Description Expression
SelectNode. predicate
Predicate used for selection.Expression
ThetaJoinNode. predicate
Join condition.Fields in edu.caltech.nanodb.plannodes with type parameters of type Expression Modifier and Type Field Description protected java.util.List<Expression>
GroupAggregateNode. groupByExprs
A list of zero or more expressions that the grouping/aggregate node will use for generating aggregates over.Methods in edu.caltech.nanodb.plannodes with parameters of type Expression Modifier and Type Method Description static PlanNode
PlanUtils. addPredicateToPlan(PlanNode plan, Expression predicate)
This helper function takes a query plan and a selection predicate, and adds the predicate to the plan in a reasonably intelligent way.Constructors in edu.caltech.nanodb.plannodes with parameters of type Expression Constructor Description FileScanNode(IndexInfo indexInfo, Expression predicate)
Construct a file scan node that traverses an index file.FileScanNode(TableInfo tableInfo, Expression predicate)
Construct a file scan node that traverses a table file.NestedLoopJoinNode(PlanNode leftChild, PlanNode rightChild, JoinType joinType, Expression predicate)
SelectNode(Expression predicate)
Constructs a SelectNode that scans a file for tuples.SelectNode(PlanNode leftChild, Expression predicate)
SimpleFilterNode(PlanNode child, Expression predicate)
SortMergeJoinNode(PlanNode leftChild, PlanNode rightChild, JoinType joinType, Expression predicate)
ThetaJoinNode(PlanNode leftChild, PlanNode rightChild, JoinType joinType, Expression predicate)
Constructs a ThetaJoinNode that joins the tuples from the left and right subplans, using the specified join type and join predicate.Constructor parameters in edu.caltech.nanodb.plannodes with type arguments of type Expression Constructor Description GroupAggregateNode(PlanNode subplan, java.util.List<Expression> groupByExprs, java.util.Map<java.lang.String,FunctionCall> aggregates)
HashedGroupAggregateNode(PlanNode subplan, java.util.List<Expression> groupByExprs, java.util.Map<java.lang.String,FunctionCall> aggregates)
SortedGroupAggregateNode(PlanNode subplan, java.util.List<Expression> groupByExprs, java.util.Map<java.lang.String,FunctionCall> aggregates)
-
Uses of Expression in edu.caltech.nanodb.queryast
Fields in edu.caltech.nanodb.queryast declared as Expression Modifier and Type Field Description private Expression
FromClause. computedJoinExpr
For FROM clauses that either directly or indirectly specify a join condition, this value is filled in with the join condition to apply, when theFromClause.computeSchema(edu.caltech.nanodb.storage.TableManager)
method is called.private Expression
SelectValue. expression
If this select-value is a simple expression then this field will be set to the expression.private Expression
SelectClause. havingExpr
If a HAVING expression is specified, this field will refer to the expression to be evaluated.private Expression
FromClause. joinOnExpr
The expression used for joining tables in this FROM clause.private Expression
SelectClause. whereExpr
If a WHERE expression is specified, this field will refer to the expression to be evaluated.Fields in edu.caltech.nanodb.queryast with type parameters of type Expression Modifier and Type Field Description private java.util.List<Expression>
SelectClause. groupByExprs
This collection holds zero or more entries specifying GROUP BY values.Methods in edu.caltech.nanodb.queryast that return Expression Modifier and Type Method Description Expression
FromClause. getComputedJoinExpr()
Expression
SelectValue. getExpression()
Returns this SelectValue's expression or null if this is a wildcard.Expression
SelectClause. getHavingExpr()
Expression
FromClause. getOnExpression()
Returns the join predicate if this from clause specifies an ON clause.Expression
SelectClause. getWhereExpr()
Retrieves the where clause from this from clause.Expression
SubquerySchemaComputer. leave(Expression e)
This method is a no-op for this expression processor.Methods in edu.caltech.nanodb.queryast that return types with arguments of type Expression Modifier and Type Method Description java.util.List<Expression>
SelectClause. getGroupByExprs()
Methods in edu.caltech.nanodb.queryast with parameters of type Expression Modifier and Type Method Description void
SelectClause. addGroupByExpr(Expression groupExpr)
void
SubquerySchemaComputer. enter(Expression e)
This method identifiesSubqueryOperator
objects, retrieves the subquery, and then generates a plan for the subquery.Expression
SubquerySchemaComputer. leave(Expression e)
This method is a no-op for this expression processor.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]".private void
SelectClause. resolveColumnRef(java.lang.String desc, Expression expr, ColumnName colName, Schema s, boolean checkParentQueries)
This helper function attempts to resolve a specific column-name against a query's schema.private void
SelectClause. resolveExpressionRefs(java.lang.String desc, Expression expr, Schema s, boolean checkParentQueries)
This helper function goes through the expression and verifies that every symbol-reference corresponds to an actual value produced by the FROM-clause of the SELECT query.void
SelectValue. setExpression(Expression e)
void
SelectClause. setHavingExpr(Expression havingExpr)
void
FromClause. setOnExpression(Expression expr)
Sets the join predicate if this from clause specifies an ON clause.void
SelectClause. setWhereExpr(Expression whereExpr)
Sets the expression for the WHERE clause.Constructors in edu.caltech.nanodb.queryast with parameters of type Expression Constructor Description SelectValue(Expression e)
Construct a select-value object from an expression, with no alias.SelectValue(Expression e, java.lang.String alias)
Construct a select-value object from an expression and an optional alias or nickname value. -
Uses of Expression in edu.caltech.nanodb.queryeval
Fields in edu.caltech.nanodb.queryeval with type parameters of type Expression Modifier and Type Field Description java.util.HashSet<Expression>
CostBasedJoinPlanner.JoinComponent. conjunctsUsed
This field specifies the collection of all conjuncts use by this join plan.private java.util.HashMap<java.lang.String,Expression>
Definitions. expressionAliases
A collection of expression aliases.Methods in edu.caltech.nanodb.queryeval with parameters of type Expression Modifier and Type Method Description static float
SelectivityEstimator. estimateSelectivity(Expression expr, Schema exprSchema, java.util.ArrayList<ColumnStats> stats)
This function computes the selectivity of a selection predicate, using table statistics and other estimates to make an educated guess.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.static java.util.ArrayList<ColumnStats>
StatisticsUpdater. updateStats(Expression expr, Schema schema, java.util.List<ColumnStats> inputStats)
This static helper takes a selection predicate, a schema the predicate is evaluated against, and input column-statistics, and produces output column-statistics that reflect the input arguments.Method parameters in edu.caltech.nanodb.queryeval with type arguments of type Expression Modifier and Type Method Description private void
CostBasedJoinPlanner. collectDetails(FromClause fromClause, java.util.HashSet<Expression> conjuncts, java.util.ArrayList<FromClause> leafFromClauses)
This helper method pulls the essential details for join optimization out of a FROM clause.private CostBasedJoinPlanner.JoinComponent
CostBasedJoinPlanner. generateOptimalJoin(java.util.ArrayList<CostBasedJoinPlanner.JoinComponent> leafComponents, java.util.Set<Expression> conjuncts)
This helper method builds up a full join-plan using a dynamic programming approach.private CostBasedJoinPlanner.JoinComponent
CostBasedJoinPlanner. makeJoinPlan(FromClause fromClause, java.util.Collection<Expression> extraConjuncts)
Given the top-levelFromClause
for a SELECT-FROM-WHERE block, this helper generates an optimal join plan for theFromClause
.private PlanNode
CostBasedJoinPlanner. makeLeafPlan(FromClause fromClause, java.util.Collection<Expression> conjuncts, java.util.HashSet<Expression> leafConjuncts)
Constructs a plan tree for evaluating the specified from-clause.private PlanNode
CostBasedJoinPlanner. makeLeafPlan(FromClause fromClause, java.util.Collection<Expression> conjuncts, java.util.HashSet<Expression> leafConjuncts)
Constructs a plan tree for evaluating the specified from-clause.Constructor parameters in edu.caltech.nanodb.queryeval with type arguments of type Expression Constructor Description JoinComponent(PlanNode leafPlan, java.util.HashSet<Expression> conjunctsUsed)
Constructs a new instance for a leaf node. -
Uses of Expression in edu.caltech.nanodb.relations
Methods in edu.caltech.nanodb.relations that return Expression Modifier and Type Method Description private Expression
DatabaseConstraintEnforcer. makeEqualityPredicate(Schema schema, int[] schemaIndexes, Tuple tuple, int[] tupleIndexes)
private Expression
DatabaseConstraintEnforcer. makeExistsPredicate(TableInfo tableInfo, int[] schemaIndexes, Tuple tuple, int[] tupleIndexes)
-
Uses of Expression in edu.caltech.nanodb.sqlparse
Methods in edu.caltech.nanodb.sqlparse that return Expression Modifier and Type Method Description static Expression
ParseUtil. parseExpression(java.lang.String expression)
static Expression
ParseUtil. parseExpression(java.lang.String expression, FunctionDirectory functionDirectory)
-
Uses of Expression in edu.caltech.nanodb.storage
Methods in edu.caltech.nanodb.storage that return types with arguments of type Expression Modifier and Type Method Description java.util.List<Expression>
HashedTupleFile. getKeySpec()
Returns the column(s) that comprise the hash key in this tuple file.
-