Package org. partiql. lang. eval
Types
Base implementation of ExprValue that provides a bare minimum implementation of a value.
Indicates if the lookup of a particular binding should be case-sensitive or not.
Encapsulates the data necessary to perform a binding lookup.
Specifies options that effect the behavior of the PartiQL compiler.
Represents the execution data of a PartiQL Statement as it relates to Code Coverage. This structure specifically represents the aggregation of data of a particular statement. For example, a PartiQL Statement containing a single boolean expression would be represented with a CoverageStructure containing two branches. However, upon execution of the Expression, this structure (CoverageData) will be populated with information related to which branches were taken and their frequency. If the execution of a compiler query results in only a single branch being taken, this class shall reflect that.
Represents the static structure of a compiled Expression. This structure is distinct from the execution data found within CoverageData.
Error for evaluation problems.
Evaluation Session. Holds user defined constants used during evaluation. Each value has a default value that can be overridden by the client
An expression that can be evaluated to ExprValue.
Represents a function that can be invoked from within an EvaluatingCompiler compiled Expression.
Representation of a value within the context of an Expression.
Evaluable representation of PartiQL bag operators.
The core types of ExprValue that exist within the type system of the evaluator. There is a correspondence to IonType, but it isn't quite one-to-one.
Provides a total, natural ordering over ExprValue. This ordering is consistent with ExprValue.exprEquals with the exception that NULL
and MISSING
compare with themselves and have order. PartiQL treats Ion typed nulls as NULL
for the purposes of comparisons and Ion annotations are not considered for comparison purposes.
A simple mapping of ordinal index to ExprValue.
Result of an evaluated PartiQLStatement.
A compiled PartiQL statement
Controls the behavior of ExprValue.iterator in the projection result. For the query Select a,b,c From <<{a:null, c:3}>>
;
Indicates if a struct is ordered or not.
Options for thunk construction.
Indicates how CAST should behave.
Indicates how the evaluator is to handle type checking errors and how MISSING
values are propagated when encountered while evaluating binary operators and function calls.
Defines the behavior when a non-existent variable is referenced.
Controls the behavior of intrinsic AST visitor transforms with EvaluatingCompiler.compile.
Functions
Invokes the function.
Casts this ExprValue to the target type.
Returns the SourceLocationMeta as an error context if the SourceLocationMeta.TAG exists in the passed metaContainer. Otherwise, returns an empty map.
Provides the default equality function.
Determines an appropriate column name for the given PartiqlAst.Expr.
Returns the name of the last component if it is a string literal, otherwise returns the column index prefixed with _
.
Wraps the given ExprValue with a delegate that provides the OrderedBindNames facet.
Implements the FROM
range operation. Specifically, this is distinct from the normal ExprValue.iterator in that types that are notExprValueType.isRangeFrom get treated as a singleton as per PartiQL specification.
Constructs the column name based on the zero-based index of that column.
Converts a CaseSensitivity to a BindingCase.
This method should only be used in case we want to get result from querying an Ion file or an IonValue