Package org.apache.calcite.sql.type
SQL type system.
-
Interface Summary Interface Description ExtraSqlTypes Holds constants associated with SQL types introduced after the earliest version of Java supported by Farrago (this currently means anything introduced in JDK 1.6 or later).JavaToSqlTypeConversionRules.ColumnList Make this public when needed.SqlOperandTypeChecker Strategy interface to check for allowed operand types of an operator call.SqlOperandTypeInference Strategy to infer unknown types of the operands of an operator call.SqlReturnTypeInference Strategy interface to infer the type of an operator call from the type of the operands.SqlSingleOperandTypeChecker SqlSingleOperandTypeChecker is an extension ofSqlOperandTypeChecker
for implementations which are capable of checking the type of a single operand in isolation.SqlTypeName.PrecScale Flags indicating precision/scale combinations.SqlTypeTransform Strategy to transform one type to another. -
Class Summary Class Description AbstractSqlType Abstract base class for SQL implementations ofRelDataType
.ArraySqlType SQL array type.AssignableOperandTypeChecker AssignableOperandTypeChecker implementsSqlOperandTypeChecker
by verifying that the type of each argument is assignable to a predefined set of parameter types (under the SQL definition of "assignable").BasicSqlType BasicSqlType represents a standard atomic SQL type (excluding interval types).ComparableOperandTypeChecker Type checking strategy which verifies that types have the required attributes to be used as arguments to comparison operators.CompositeOperandTypeChecker This class allows multiple existingSqlOperandTypeChecker
rules to be combined into one rule.CompositeSingleOperandTypeChecker Allows multipleSqlSingleOperandTypeChecker
rules to be combined into one rule.CursorReturnTypeInference Returns the rowtype of a cursor of the operand at a particular 0-based ordinal position.ExplicitOperandTypeInference ExplicitOperandTypeInferences implementsSqlOperandTypeInference
by explicitly supplying a type for each parameter.ExplicitReturnTypeInference ASqlReturnTypeInference
which always returns the same SQL type.FamilyOperandTypeChecker Operand type-checking strategy which checks operands for inclusion in type families.InferTypes Strategies for inferring operand types.IntervalSqlType IntervalSqlType represents a standard SQL datetime interval type.JavaToSqlTypeConversionRules JavaToSqlTypeConversionRules defines mappings from common Java types to corresponding SQL types.LiteralOperandTypeChecker Parameter type-checking strategy type must be a literal (whether null is allowed is determined by the constructor).MapSqlType SQL map type.MatchReturnTypeInference Returns the first type that matches a set of givenSqlTypeName
s.MultisetOperandTypeChecker Parameter type-checking strategy types must be [nullable] Multiset, [nullable] Multiset and the two types must have the same element typeMultisetSqlType MultisetSqlType represents a standard SQL2003 multiset type.ObjectSqlType ObjectSqlType represents an SQL structured user-defined type.OperandsTypeChecking Strategies to check for allowed operand types of an operator call.OperandTypes Strategies for checking operand types.OperandTypes.PeriodOperandTypeChecker Operand type checker that accepts period types: PERIOD (DATETIME, DATETIME) PERIOD (DATETIME, INTERVAL) [ROW] (DATETIME, DATETIME) [ROW] (DATETIME, INTERVAL)OrdinalReturnTypeInference Returns the type of the operand at a particular 0-based ordinal position.ReturnTypes A collection of return-type inference strategies.SameOperandTypeChecker Parameter type-checking strategy where all operand types must be the same.SameOperandTypeExceptLastOperandChecker Parameter type-checking strategy where all operand types except last one must be the same.SetopOperandTypeChecker Parameter type-checking strategy for a set operator (UNION, INTERSECT, EXCEPT).SqlOperandCountRanges Helpers forSqlOperandCountRange
.SqlOperandCountRanges.RangeImpl Implementation ofSqlOperandCountRange
.SqlReturnTypeInferenceChain Strategy to infer the type of an operator call from the type of the operands by using a series ofSqlReturnTypeInference
rules in a given order.SqlTypeAssignmentRules Rules that determine whether a type is assignable from another type.SqlTypeAssignmentRules.Builder Keeps state while maps are building build.SqlTypeExplicitPrecedenceList SqlTypeExplicitPrecedenceList implements theRelDataTypePrecedenceList
interface via an explicit list ofSqlTypeName
entries.SqlTypeFactoryImpl SqlTypeFactoryImpl provides a default implementation ofRelDataTypeFactory
which supports SQL types.SqlTypeFactoryImpl.UnknownSqlType The unknown type.SqlTypeTransformCascade Strategy to infer the type of an operator call from the type of the operands by using oneSqlReturnTypeInference
rule and a combination ofSqlTypeTransform
sSqlTypeTransforms SqlTypeTransforms defines a number of reusable instances ofSqlTypeTransform
.SqlTypeUtil Contains utility methods used during SQL validation or type derivation.TableFunctionReturnTypeInference TableFunctionReturnTypeInference implements rules for deriving table function output row types by expanding references to cursor parameters. -
Enum Summary Enum Description CompositeOperandTypeChecker.Composition How operands are composed.SqlOperandTypeChecker.Consistency Strategy used to make arguments consistent.SqlTypeFamily SqlTypeFamily provides SQL type categorization.SqlTypeName Enumeration of the type names which can be used to construct a SQL type.SqlTypeName.Limit Limit.