Package edu.caltech.nanodb.expressions
This package contains classes for representing and evaluating arithmetic and
logical expressions.
-
Interface Summary Interface Description ExpressionProcessor This interface is used to implement scans or transformations of expression trees by specifying what to do when entering or leaving each expression node. -
Class Summary Class Description ArithmeticOperator This class implements simple binary arithmetic operations.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).ColumnName This class represents a column name that appears in an SQL expression.ColumnValue This expression class represents the value of a tuple column.CompareOperator This class implements simple binary comparison operations.DateTimeUtils Provides a number of utility operations for working with dates, times and timestamps.Environment This class holds the environment for evaluating expressions that include symbols.ExistsOperator This class implements the EXISTS (subquery) operator.Expression This is the base type of all arithmetic and logical expressions that can be represented in SQL commands.Expression.SymbolFinder ThisExpressionProcessor
implementation traverses an expression and finds all symbols that appear within the expression.FunctionCall This class represents all kinds of function-call expressions, including simple function calls, aggregate function calls, and table-returning function calls.InSubqueryOperator This class implements the expr IN (subquery) operator.InValuesOperator This class implements the expr IN (values) operator.IsNullOperator LiteralValue This expression class represents literal values.NegateOperator This class implements unary negation.Null This class provides a type to associate with NULL literal values.OrderByExpression This class represents an expression that results are ordered by, as well as whether the order is ascending or descending.PredicateUtils A collection of helpful utilities that can be used for generating, analyzing and manipulating predicates.ScalarSubquery This class represents a scalar subquery embedded in another query's predicate.StringMatchOperator This class implements string matching operations.SubqueryOperator This class is the superclass of all expressions that can hold subqueries, such as the IN operator, the EXISTS operator, and scalar subqueries.TupleComparator This class allows us to sort and compare tuples based on an order-by specification.TupleHasher TupleLiteral A simple implementation of theTuple
interface for storing literal tuple values.TypeConverter This class provides a whole bunch of helper functions for performing type conversions on values produced by various expressions. -
Enum Summary Enum Description ArithmeticOperator.Type This enum specifies the arithmetic operations that this class can provide.BooleanOperator.Type This enumeration specifies the different kinds of Boolean operators that this class can implement.CompareOperator.Type This enumeration specifies the types of comparisons that can be performed.StringMatchOperator.Type This enumeration specifies the types of matching that can be performed. -
Exception Summary Exception Description DivideByZeroException This exception is thrown when an expression would cause a divide by zero.ExpressionException This exception is thrown when there is an error during the evaluation of an expression.TruncationException This exception is a specific subtype of the type-cast exception that is thrown when a type-conversion would cause a truncation of a value.TypeCastException This exception is thrown when theTypeConverter
tries to cast a value from one type to another incompatible type.