| Package | Description |
|---|---|
| org.apache.calcite.rel.type |
Defines a type system for relational expressions.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.type |
SQL type system.
|
| Modifier and Type | Method and Description |
|---|---|
SqlTypeName |
RelRecordType.getSqlTypeName() |
SqlTypeName |
RelDataTypeImpl.getSqlTypeName() |
SqlTypeName |
RelDataTypeFactoryImpl.JavaType.getSqlTypeName() |
SqlTypeName |
RelDataType.getSqlTypeName()
Gets the
SqlTypeName of this type. |
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.add(String name,
SqlTypeName typeName)
Adds a field with a type created using
RelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName). |
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.add(String name,
SqlTypeName typeName,
int precision)
Adds a field with a type created using
RelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int). |
RelDataTypeFactory.FieldInfoBuilder |
RelDataTypeFactory.FieldInfoBuilder.add(String name,
SqlTypeName typeName,
int precision,
int scale)
Adds a field with a type created using
RelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int, int). |
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName)
Creates a SQL type with no precision or scale.
|
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName,
int precision)
Creates a SQL type with length (precision) but no scale.
|
RelDataType |
RelDataTypeFactory.createSqlType(SqlTypeName typeName,
int precision,
int scale)
Creates a SQL type with precision and scale.
|
int |
RelDataTypeSystemImpl.getDefaultPrecision(SqlTypeName typeName) |
int |
RelDataTypeSystem.getDefaultPrecision(SqlTypeName typeName)
Returns default precision for this type if supported, otherwise -1 if
precision is either unsupported or must be specified explicitly.
|
int |
RelDataTypeSystemImpl.getMaxPrecision(SqlTypeName typeName) |
int |
RelDataTypeSystem.getMaxPrecision(SqlTypeName typeName)
Returns the maximum precision (or length) allowed for this type, or -1 if
precision/length are not applicable for this type.
|
int |
RelDataTypeSystemImpl.getMaxScale(SqlTypeName typeName) |
int |
RelDataTypeSystem.getMaxScale(SqlTypeName typeName)
Returns the maximum scale of a given type.
|
static RelProtoDataType |
RelDataTypeImpl.proto(SqlTypeName typeName,
boolean nullable)
Returns a
RelProtoDataType
that will create a type typeName. |
static RelProtoDataType |
RelDataTypeImpl.proto(SqlTypeName typeName,
int precision,
boolean nullable)
Returns a
RelProtoDataType
that will create a type typeName(precision). |
static RelProtoDataType |
RelDataTypeImpl.proto(SqlTypeName typeName,
int precision,
int scale,
boolean nullable)
Returns a
RelProtoDataType
that will create a type typeName(precision, scale). |
| Modifier and Type | Method and Description |
|---|---|
SqlTypeName |
RexLiteral.getTypeName() |
| Modifier and Type | Method and Description |
|---|---|
static RexLiteral |
RexLiteral.fromJdbcString(RelDataType type,
SqlTypeName typeName,
String literal)
Converts a Jdbc string into a RexLiteral.
|
protected RexLiteral |
RexBuilder.makeLiteral(Comparable o,
RelDataType type,
SqlTypeName typeName)
Internal method to create a call to a literal.
|
RexNode |
RexBuilder.makeNullLiteral(SqlTypeName typeName)
Creates a literal whose value is NULL, with a particular type.
|
RexNode |
RexBuilder.makeNullLiteral(SqlTypeName typeName,
int precision)
Creates an expression corresponding to a null literal, cast to a specific
type and precision
|
static boolean |
RexLiteral.valueMatchesType(Comparable value,
SqlTypeName typeName,
boolean strict) |
| Modifier and Type | Method and Description |
|---|---|
SqlTypeName |
SqlLiteral.getTypeName() |
SqlTypeName |
SqlIntervalQualifier.typeName() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SqlLiteral.valueMatchesType(Object value,
SqlTypeName typeName) |
| Constructor and Description |
|---|
SqlIntervalLiteral(int sign,
String intervalStr,
SqlIntervalQualifier intervalQualifier,
SqlTypeName sqlTypeName,
SqlParserPos pos) |
SqlLiteral(Object value,
SqlTypeName typeName,
SqlParserPos pos)
Creates a
SqlLiteral. |
| Constructor and Description |
|---|
SqlAbstractTimeFunction(String name,
SqlTypeName typeName) |
| Modifier and Type | Field and Description |
|---|---|
protected SqlTypeName |
AbstractSqlType.typeName |
| Modifier and Type | Field and Description |
|---|---|
static List<SqlTypeName> |
SqlTypeName.ALL_TYPES |
static List<SqlTypeName> |
SqlTypeName.APPROX_TYPES |
static List<SqlTypeName> |
SqlTypeName.BINARY_TYPES |
static List<SqlTypeName> |
SqlTypeName.BOOLEAN_TYPES |
static List<SqlTypeName> |
SqlTypeName.CHAR_TYPES |
static List<SqlTypeName> |
SqlTypeName.DATETIME_TYPES |
static List<SqlTypeName> |
SqlTypeName.EXACT_TYPES |
static List<SqlTypeName> |
SqlTypeName.FRACTIONAL_TYPES |
static List<SqlTypeName> |
SqlTypeName.INT_TYPES |
static List<SqlTypeName> |
SqlTypeName.INTERVAL_TYPES |
static List<SqlTypeName> |
SqlTypeName.NUMERIC_TYPES |
static List<SqlTypeName> |
SqlTypeName.STRING_TYPES |
| Modifier and Type | Method and Description |
|---|---|
static SqlTypeName |
SqlTypeName.get(String name)
Looks up a type name from its name.
|
static SqlTypeName |
SqlTypeName.getNameForJdbcType(int jdbcType)
Gets the SqlTypeName corresponding to a JDBC type.
|
SqlTypeName |
AbstractSqlType.getSqlTypeName() |
SqlTypeName |
JavaToSqlTypeConversionRules.lookup(Class javaClass)
Returns a corresponding
SqlTypeName for a given Java class. |
static SqlTypeName |
SqlTypeName.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlTypeName[] |
SqlTypeName.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
List<SqlTypeName> |
SqlTypeFamily.getTypeNames() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SqlTypeAssignmentRules.canCastFrom(SqlTypeName to,
SqlTypeName from,
boolean coerce) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName,
int precision) |
RelDataType |
SqlTypeFactoryImpl.createSqlType(SqlTypeName typeName,
int precision,
int scale) |
static ExplicitReturnTypeInference |
ReturnTypes.explicit(SqlTypeName typeName)
Creates an inference rule which returns a type with no precision or scale,
such as
DATE. |
static ExplicitReturnTypeInference |
ReturnTypes.explicit(SqlTypeName typeName,
int precision)
Creates an inference rule which returns a type with precision but no scale,
such as
VARCHAR(100). |
static boolean |
SqlTypeUtil.inCharFamily(SqlTypeName typeName) |
static boolean |
SqlTypeUtil.isOfSameTypeName(SqlTypeName typeName,
RelDataType type)
Returns typeName.equals(type.getSqlTypeName()).
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SqlTypeUtil.isOfSameTypeName(List<SqlTypeName> typeNames,
RelDataType type)
Returns true if any element in
typeNames matches
type.getSqlTypeName(). |
| Constructor and Description |
|---|
AbstractSqlType(SqlTypeName typeName,
boolean isNullable,
List<? extends RelDataTypeField> fields)
Creates an AbstractSqlType.
|
BasicSqlType(RelDataTypeSystem typeSystem,
SqlTypeName typeName)
Constructs a type with no parameters.
|
BasicSqlType(RelDataTypeSystem typeSystem,
SqlTypeName typeName,
int precision)
Constructs a type with precision/length but no scale.
|
BasicSqlType(RelDataTypeSystem typeSystem,
SqlTypeName typeName,
int precision,
int scale)
Constructs a type with precision/length and scale.
|
MatchReturnTypeInference(int start,
SqlTypeName... typeNames)
Returns the first type of typeName at or after position start (zero
based).
|
ObjectSqlType(SqlTypeName typeName,
SqlIdentifier sqlIdentifier,
boolean nullable,
List<? extends RelDataTypeField> fields,
RelDataTypeComparability comparability)
Constructs an object type.
|
| Constructor and Description |
|---|
MatchReturnTypeInference(int start,
List<SqlTypeName> typeNames)
Returns the first type matching any type in typeNames at or after
position start (zero based).
|
SqlTypeExplicitPrecedenceList(List<SqlTypeName> typeNames) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.