Uses of Class
org.apache.calcite.sql.type.SqlTypeName
-
Packages that use SqlTypeName Package Description org.apache.calcite.adapter.cassandra Cassandra query provider.org.apache.calcite.adapter.druid Query provider based on a Druid database.org.apache.calcite.adapter.enumerable Query optimizer rules for Java calling convention.org.apache.calcite.adapter.jdbc Query provider based on a JDBC data source.org.apache.calcite.adapter.pig Pig query provider.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.dialect SQL unparsers for JDBC dialects.org.apache.calcite.sql.fun Defines the set of standard SQL row-level functions and operators.org.apache.calcite.sql.type SQL type system.org.apache.calcite.tools Provides utility classes. -
-
Uses of SqlTypeName in org.apache.calcite.adapter.cassandra
Methods in org.apache.calcite.adapter.cassandra with parameters of type SqlTypeName Modifier and Type Method Description private java.lang.Object
CassandraEnumerator. currentRowField(int index, SqlTypeName typeName)
Get a field for the current row from the underlying object. -
Uses of SqlTypeName in org.apache.calcite.adapter.druid
Fields in org.apache.calcite.adapter.druid declared as SqlTypeName Modifier and Type Field Description SqlTypeName
DruidType. sqlType
The corresponding SQL type.Fields in org.apache.calcite.adapter.druid with type parameters of type SqlTypeName Modifier and Type Field Description (package private) com.google.common.collect.ImmutableMap<java.lang.String,SqlTypeName>
DruidTable. allFields
(package private) static java.util.Map<SqlTypeName,DruidType>
DruidExpressions. EXPRESSION_TYPES
Type mapping between Calcite SQL family types and native Druid expression typesprivate com.google.common.collect.ImmutableMap<java.lang.String,SqlTypeName>
DruidTable.MapRelProtoDataType. fields
Methods in org.apache.calcite.adapter.druid with parameters of type SqlTypeName Modifier and Type Method Description private static java.lang.String
DruidSqlCastConverter. castCharToDateTime(java.util.TimeZone timeZone, java.lang.String operand, SqlTypeName toType, java.lang.String format)
private static java.lang.String
DruidSqlCastConverter. castDateTimeToChar(java.util.TimeZone timeZone, java.lang.String operand, SqlTypeName fromType)
static java.lang.String
DruidSqlCastConverter. dateTimeFormatString(SqlTypeName sqlTypeName)
Method parameters in org.apache.calcite.adapter.druid with type arguments of type SqlTypeName Modifier and Type Method Description (package private) static Table
DruidTable. create(DruidSchema druidSchema, java.lang.String dataSourceName, java.util.List<org.joda.time.Interval> intervals, java.util.Map<java.lang.String,SqlTypeName> fieldMap, java.util.Set<java.lang.String> metricNameSet, java.lang.String timestampColumnName, java.util.Map<java.lang.String,java.util.List<ComplexMetric>> complexMetrics)
Creates aDruidTable
by copying the given parameters.(package private) static Table
DruidTable. create(DruidSchema druidSchema, java.lang.String dataSourceName, java.util.List<org.joda.time.Interval> intervals, java.util.Map<java.lang.String,SqlTypeName> fieldMap, java.util.Set<java.lang.String> metricNameSet, java.lang.String timestampColumnName, DruidConnectionImpl connection, java.util.Map<java.lang.String,java.util.List<ComplexMetric>> complexMetrics)
Creates aDruidTable
by using the givenDruidConnectionImpl
to populate the other parameters.(package private) void
DruidConnectionImpl. metadata(java.lang.String dataSourceName, java.lang.String timestampColumnName, java.util.List<org.joda.time.Interval> intervals, java.util.Map<java.lang.String,SqlTypeName> fieldBuilder, java.util.Set<java.lang.String> metricNameBuilder, java.util.Map<java.lang.String,java.util.List<ComplexMetric>> complexMetrics)
Reads segment metadata, and populates a list of columns and metrics.Constructors in org.apache.calcite.adapter.druid with parameters of type SqlTypeName Constructor Description DruidType(SqlTypeName sqlType)
Constructor parameters in org.apache.calcite.adapter.druid with type arguments of type SqlTypeName Constructor Description MapRelProtoDataType(com.google.common.collect.ImmutableMap<java.lang.String,SqlTypeName> fields)
MapRelProtoDataType(com.google.common.collect.ImmutableMap<java.lang.String,SqlTypeName> fields, java.lang.String timestampColumn)
-
Uses of SqlTypeName in org.apache.calcite.adapter.enumerable
Methods in org.apache.calcite.adapter.enumerable with parameters of type SqlTypeName Modifier and Type Method Description private RexImpTable.MethodImplementor
RexImpTable.ItemImplementor. getImplementor(SqlTypeName sqlTypeName)
private Expression
RexImpTable.DatetimeArithmeticImplementor. normalize(SqlTypeName typeName, Expression e)
Normalizes a TIME value into 00:00:00..23:59:39. -
Uses of SqlTypeName in org.apache.calcite.adapter.jdbc
Methods in org.apache.calcite.adapter.jdbc with parameters of type SqlTypeName Modifier and Type Method Description private java.lang.reflect.Method
JdbcToEnumerableConverter. getMethod(SqlTypeName sqlTypeName, boolean nullable, boolean offset)
private java.lang.reflect.Method
JdbcToEnumerableConverter. getMethod2(SqlTypeName sqlTypeName)
-
Uses of SqlTypeName in org.apache.calcite.adapter.pig
Fields in org.apache.calcite.adapter.pig declared as SqlTypeName Modifier and Type Field Description private SqlTypeName
PigDataType. sqlType
Methods in org.apache.calcite.adapter.pig that return SqlTypeName Modifier and Type Method Description SqlTypeName
PigDataType. getSqlType()
Methods in org.apache.calcite.adapter.pig with parameters of type SqlTypeName Modifier and Type Method Description static PigDataType
PigDataType. valueOf(SqlTypeName sqlType)
Returns the enum constant of this type with the specified name.Constructors in org.apache.calcite.adapter.pig with parameters of type SqlTypeName Constructor Description PigDataType(byte pigType, SqlTypeName sqlType)
-
Uses of SqlTypeName in org.apache.calcite.rel.type
Methods in org.apache.calcite.rel.type that return SqlTypeName Modifier and Type Method Description SqlTypeName
DynamicRecordTypeImpl. getSqlTypeName()
SqlTypeName
RelDataType. getSqlTypeName()
Gets theSqlTypeName
of this type.SqlTypeName
RelDataTypeFactoryImpl.JavaType. getSqlTypeName()
SqlTypeName
RelDataTypeImpl. getSqlTypeName()
SqlTypeName
RelRecordType. getSqlTypeName()
Methods in org.apache.calcite.rel.type with parameters of type SqlTypeName Modifier and Type Method Description RelDataTypeFactory.Builder
RelDataTypeFactory.Builder. add(java.lang.String name, SqlTypeName typeName)
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName)
.RelDataTypeFactory.Builder
RelDataTypeFactory.Builder. add(java.lang.String name, SqlTypeName typeName, int precision)
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int)
.RelDataTypeFactory.Builder
RelDataTypeFactory.Builder. add(java.lang.String name, SqlTypeName typeName, int precision, int scale)
Adds a field with a type created usingRelDataTypeFactory.createSqlType(org.apache.calcite.sql.type.SqlTypeName, int, int)
.RelDataTypeFactory.FieldInfoBuilder
RelDataTypeFactory.FieldInfoBuilder. add(java.lang.String name, SqlTypeName typeName)
Deprecated.RelDataTypeFactory.FieldInfoBuilder
RelDataTypeFactory.FieldInfoBuilder. add(java.lang.String name, SqlTypeName typeName, int precision)
Deprecated.RelDataTypeFactory.FieldInfoBuilder
RelDataTypeFactory.FieldInfoBuilder. add(java.lang.String name, SqlTypeName typeName, int precision, int scale)
Deprecated.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
DelegatingTypeSystem. 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. getDefaultPrecision(SqlTypeName typeName)
java.lang.String
DelegatingTypeSystem. getLiteral(SqlTypeName typeName, boolean isPrefix)
java.lang.String
RelDataTypeSystem. getLiteral(SqlTypeName typeName, boolean isPrefix)
Returns the LITERAL string for the type, either PREFIX/SUFFIX.java.lang.String
RelDataTypeSystemImpl. getLiteral(SqlTypeName typeName, boolean isPrefix)
int
DelegatingTypeSystem. 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. getMaxPrecision(SqlTypeName typeName)
int
DelegatingTypeSystem. getMaxScale(SqlTypeName typeName)
int
RelDataTypeSystem. getMaxScale(SqlTypeName typeName)
Returns the maximum scale of a given type.int
RelDataTypeSystemImpl. getMaxScale(SqlTypeName typeName)
int
DelegatingTypeSystem. getNumTypeRadix(SqlTypeName typeName)
int
RelDataTypeSystem. getNumTypeRadix(SqlTypeName typeName)
Returns the numeric type radix, typically 2 or 10.int
RelDataTypeSystemImpl. getNumTypeRadix(SqlTypeName typeName)
boolean
DelegatingTypeSystem. isAutoincrement(SqlTypeName typeName)
boolean
RelDataTypeSystem. isAutoincrement(SqlTypeName typeName)
Returns whether the type can be auto increment.boolean
RelDataTypeSystemImpl. isAutoincrement(SqlTypeName typeName)
boolean
DelegatingTypeSystem. isCaseSensitive(SqlTypeName typeName)
boolean
RelDataTypeSystem. isCaseSensitive(SqlTypeName typeName)
Returns whether the type is case sensitive.boolean
RelDataTypeSystemImpl. isCaseSensitive(SqlTypeName typeName)
static RelProtoDataType
RelDataTypeImpl. proto(SqlTypeName typeName, boolean nullable)
Returns aRelProtoDataType
that will create a typetypeName
.static RelProtoDataType
RelDataTypeImpl. proto(SqlTypeName typeName, int precision, boolean nullable)
Returns aRelProtoDataType
that will create a typetypeName(precision)
.static RelProtoDataType
RelDataTypeImpl. proto(SqlTypeName typeName, int precision, int scale, boolean nullable)
Returns aRelProtoDataType
that will create a typetypeName(precision, scale)
. -
Uses of SqlTypeName in org.apache.calcite.rex
Fields in org.apache.calcite.rex declared as SqlTypeName Modifier and Type Field Description private SqlTypeName
RexLiteral. typeName
An indication of the broad type of this literal -- even if its type isn't a SQL type.Methods in org.apache.calcite.rex that return SqlTypeName Modifier and Type Method Description SqlTypeName
RexLiteral. getTypeName()
Methods in org.apache.calcite.rex with parameters of type SqlTypeName Modifier and Type Method Description protected static org.apache.calcite.avatica.util.TimeUnit
RexBuilder. baseUnit(SqlTypeName unit)
Returns the lowest granularity unit for the given unit.(package private) boolean
RexBuilder. canRemoveCastFromLiteral(RelDataType toType, java.lang.Comparable value, SqlTypeName fromTypeName)
static RexLiteral
RexLiteral. fromJdbcString(RelDataType type, SqlTypeName typeName, java.lang.String literal)
Converts a Jdbc string into a RexLiteral.private static java.lang.String
RexLiteral. getCalendarFormat(SqlTypeName typeName)
private static java.util.List<org.apache.calcite.avatica.util.TimeUnit>
RexLiteral. getTimeUnits(SqlTypeName typeName)
Returns a list of the time units covered by an interval type such as HOUR TO SECOND.protected RexLiteral
RexBuilder. makeLiteral(java.lang.Comparable o, RelDataType type, SqlTypeName typeName)
Internal method to create a call to a literal.RexNode
RexBuilder. makeNullLiteral(SqlTypeName typeName)
Deprecated.RexNode
RexBuilder. makeNullLiteral(SqlTypeName typeName, int precision)
Deprecated.private static void
RexLiteral. printAsJava(java.lang.Comparable value, java.io.PrintWriter pw, SqlTypeName typeName, boolean java)
Prints a value as a Java string.private static java.lang.String
RexLiteral. toJavaString(java.lang.Comparable value, SqlTypeName typeName)
static boolean
RexLiteral. valueMatchesType(java.lang.Comparable value, SqlTypeName typeName, boolean strict)
Constructors in org.apache.calcite.rex with parameters of type SqlTypeName Constructor Description RexLiteral(java.lang.Comparable value, RelDataType type, SqlTypeName typeName)
Creates aRexLiteral
. -
Uses of SqlTypeName in org.apache.calcite.sql
Fields in org.apache.calcite.sql declared as SqlTypeName Modifier and Type Field Description private SqlTypeName
SqlJdbcDataTypeName. typeName
private SqlTypeName
SqlLiteral. typeName
The type with which this literal was declared.Methods in org.apache.calcite.sql that return SqlTypeName Modifier and Type Method Description SqlTypeName
SqlLiteral. getTypeName()
SqlTypeName
SqlIntervalQualifier. typeName()
Methods in org.apache.calcite.sql with parameters of type SqlTypeName Modifier and Type Method Description static boolean
SqlLiteral. valueMatchesType(java.lang.Object value, SqlTypeName typeName)
Constructors in org.apache.calcite.sql with parameters of type SqlTypeName Constructor Description SqlAbstractDateTimeLiteral(java.lang.Object d, boolean tz, SqlTypeName typeName, int precision, SqlParserPos pos)
Constructs a datetime literal.SqlAbstractStringLiteral(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
SqlIntervalLiteral(int sign, java.lang.String intervalStr, SqlIntervalQualifier intervalQualifier, SqlTypeName sqlTypeName, SqlParserPos pos)
SqlIntervalLiteral(SqlIntervalLiteral.IntervalValue intervalValue, SqlTypeName sqlTypeName, SqlParserPos pos)
SqlJdbcDataTypeName(SqlTypeName typeName)
SqlJdbcDataTypeName(SqlTypeName typeName, org.apache.calcite.avatica.util.TimeUnitRange range)
SqlLiteral(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
Creates aSqlLiteral
. -
Uses of SqlTypeName in org.apache.calcite.sql.dialect
Fields in org.apache.calcite.sql.dialect with type parameters of type SqlTypeName Modifier and Type Field Description private java.util.List<SqlTypeName>
JethroDataSqlDialect.JethroSupportedFunction. operandTypes
Methods in org.apache.calcite.sql.dialect that return SqlTypeName Modifier and Type Method Description private SqlTypeName
JethroDataSqlDialect.JethroSupportedFunction. parse(java.lang.String strType)
-
Uses of SqlTypeName in org.apache.calcite.sql.fun
Fields in org.apache.calcite.sql.fun declared as SqlTypeName Modifier and Type Field Description private SqlTypeName
SqlAbstractTimeFunction. typeName
Constructors in org.apache.calcite.sql.fun with parameters of type SqlTypeName Constructor Description SqlAbstractTimeFunction(java.lang.String name, SqlTypeName typeName)
-
Uses of SqlTypeName in org.apache.calcite.sql.type
Fields in org.apache.calcite.sql.type declared as SqlTypeName Modifier and Type Field Description protected SqlTypeName
AbstractSqlType. typeName
Fields in org.apache.calcite.sql.type with type parameters of type SqlTypeName Modifier and Type Field Description static java.util.List<SqlTypeName>
SqlTypeName. ALL_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. APPROX_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. BINARY_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. BOOLEAN_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. CHAR_TYPES
private static java.util.List<SqlTypeName>
SqlTypeExplicitPrecedenceList. COMPACT_NUMERIC_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. DATETIME_TYPES
static java.util.Set<SqlTypeName>
SqlTypeName. DAY_INTERVAL_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. EXACT_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. FRACTIONAL_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. INT_TYPES
static java.util.Set<SqlTypeName>
SqlTypeName. INTERVAL_TYPES
private static java.util.Map<java.lang.Integer,SqlTypeName>
SqlTypeName. JDBC_TYPE_TO_NAME
(package private) java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules.Builder. map
(package private) java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules.Builder. map
private java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules. map
private java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules. map
private static java.util.List<SqlTypeName>
SqlTypeExplicitPrecedenceList. NUMERIC_TYPES
static java.util.List<SqlTypeName>
SqlTypeName. NUMERIC_TYPES
private java.util.Map<java.lang.Class<?>,SqlTypeName>
JavaToSqlTypeConversionRules. rules
(package private) com.google.common.cache.LoadingCache<java.util.Set<SqlTypeName>,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules.Builder. sets
(package private) com.google.common.cache.LoadingCache<java.util.Set<SqlTypeName>,com.google.common.collect.ImmutableSet<SqlTypeName>>
SqlTypeAssignmentRules.Builder. sets
static java.util.List<SqlTypeName>
SqlTypeName. STRING_TYPES
private static java.util.Map<SqlTypeName,SqlTypeExplicitPrecedenceList>
SqlTypeExplicitPrecedenceList. TYPE_NAME_TO_PRECEDENCE_LIST
Map from SqlTypeName to corresponding precedence list.private java.util.List<SqlTypeName>
MatchReturnTypeInference. typeNames
private java.util.List<SqlTypeName>
SqlTypeExplicitPrecedenceList. typeNames
private static java.util.Map<java.lang.String,SqlTypeName>
SqlTypeName. VALUES_MAP
static java.util.Set<SqlTypeName>
SqlTypeName. YEAR_INTERVAL_TYPES
Methods in org.apache.calcite.sql.type that return SqlTypeName Modifier and Type Method Description static SqlTypeName
SqlTypeName. get(java.lang.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(java.lang.Class javaClass)
Returns a correspondingSqlTypeName
for a given Java class.static SqlTypeName
SqlTypeName. valueOf(java.lang.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.Methods in org.apache.calcite.sql.type that return types with arguments of type SqlTypeName Modifier and Type Method Description private static java.util.List<SqlTypeName>
SqlTypeName. combine(java.util.List<SqlTypeName> list0, java.util.List<SqlTypeName> list1)
(package private) com.google.common.collect.ImmutableSet.Builder<SqlTypeName>
SqlTypeAssignmentRules.Builder. copyValues(SqlTypeName typeName)
java.util.Collection<SqlTypeName>
SqlTypeFamily. getTypeNames()
Methods in org.apache.calcite.sql.type with parameters of type SqlTypeName Modifier and Type Method Description (package private) void
SqlTypeAssignmentRules.Builder. add(SqlTypeName fromType, java.util.Set<SqlTypeName> toTypes)
private void
SqlTypeFactoryImpl. assertBasic(SqlTypeName typeName)
boolean
SqlTypeAssignmentRules. canCastFrom(SqlTypeName to, SqlTypeName from)
Returns whether it is valid to cast a value of from typefrom
to typeto
.boolean
SqlTypeAssignmentRules. canCastFrom(SqlTypeName to, SqlTypeName from, boolean coerce)
Deprecated.protected static void
BasicSqlType. checkPrecScale(SqlTypeName typeName, boolean precisionSpecified, boolean scaleSpecified)
Throws iftypeName
does not allow the given combination of precision and scale.(package private) com.google.common.collect.ImmutableSet.Builder<SqlTypeName>
SqlTypeAssignmentRules.Builder. copyValues(SqlTypeName typeName)
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 asDATE
.static ExplicitReturnTypeInference
ReturnTypes. explicit(SqlTypeName typeName, int precision)
Creates an inference rule which returns a type with precision but no scale, such asVARCHAR(100)
.private static int
SqlTypeExplicitPrecedenceList. getListPosition(SqlTypeName type, java.util.List<SqlTypeName> list)
static boolean
SqlTypeUtil. inCharFamily(SqlTypeName typeName)
static boolean
SqlTypeUtil. isOfSameTypeName(SqlTypeName typeName, RelDataType type)
Returns typeName.equals(type.getSqlTypeName()).private static SqlTypeExplicitPrecedenceList
SqlTypeExplicitPrecedenceList. list(SqlTypeName... typeNames)
private static SqlTypeExplicitPrecedenceList
SqlTypeExplicitPrecedenceList. numeric(SqlTypeName typeName)
Method parameters in org.apache.calcite.sql.type with type arguments of type SqlTypeName Modifier and Type Method Description (package private) void
SqlTypeAssignmentRules.Builder. add(SqlTypeName fromType, java.util.Set<SqlTypeName> toTypes)
private static java.util.List<SqlTypeName>
SqlTypeName. combine(java.util.List<SqlTypeName> list0, java.util.List<SqlTypeName> list1)
private static int
SqlTypeExplicitPrecedenceList. getListPosition(SqlTypeName type, java.util.List<SqlTypeName> list)
static boolean
SqlTypeUtil. isOfSameTypeName(java.util.Collection<SqlTypeName> typeNames, RelDataType type)
Returns true if any element intypeNames
matches type.getSqlTypeName().private static SqlTypeExplicitPrecedenceList
SqlTypeExplicitPrecedenceList. list(java.lang.Iterable<SqlTypeName> typeNames)
Constructors in org.apache.calcite.sql.type with parameters of type SqlTypeName Constructor Description AbstractSqlType(SqlTypeName typeName, boolean isNullable, java.util.List<? extends RelDataTypeField> fields)
Creates an AbstractSqlType.BasicSqlType(RelDataTypeSystem typeSystem, SqlTypeName typeName)
Constructs a type with no parameters.BasicSqlType(RelDataTypeSystem typeSystem, SqlTypeName typeName, boolean nullable, int precision, int scale, SqlCollation collation, SerializableCharset wrappedCharset)
Internal constructor.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, java.util.List<? extends RelDataTypeField> fields, RelDataTypeComparability comparability)
Constructs an object type.Constructor parameters in org.apache.calcite.sql.type with type arguments of type SqlTypeName Constructor Description MatchReturnTypeInference(int start, java.lang.Iterable<SqlTypeName> typeNames)
Returns the first type matching any type in typeNames at or after position start (zero based).SqlTypeAssignmentRules(java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>> map)
SqlTypeAssignmentRules(java.util.Map<SqlTypeName,com.google.common.collect.ImmutableSet<SqlTypeName>> map)
SqlTypeExplicitPrecedenceList(java.lang.Iterable<SqlTypeName> typeNames)
-
Uses of SqlTypeName in org.apache.calcite.tools
Methods in org.apache.calcite.tools with parameters of type SqlTypeName Modifier and Type Method Description RexNode
RelBuilder. cast(RexNode expr, SqlTypeName typeName)
Creates an expression that casts an expression to a given type.RexNode
RelBuilder. cast(RexNode expr, SqlTypeName typeName, int precision)
Creates an expression that casts an expression to a type with a given name and precision or length.RexNode
RelBuilder. cast(RexNode expr, SqlTypeName typeName, int precision, int scale)
Creates an expression that casts an expression to a type with a given name, precision and scale.
-