public class IntervalSqlType extends AbstractSqlType
isNullable, typeNamedigest, fieldListPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Constructor and Description |
|---|
IntervalSqlType(RelDataTypeSystem typeSystem,
SqlIntervalQualifier intervalQualifier,
boolean isNullable)
Constructs an IntervalSqlType.
|
| Modifier and Type | Method and Description |
|---|---|
IntervalSqlType |
combine(RelDataTypeFactoryImpl typeFactory,
IntervalSqlType that)
Combines two IntervalTypes and returns the result.
|
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail)
Generates a string representation of this type.
|
SqlIntervalQualifier |
getIntervalQualifier()
Gets this type's interval qualifier, or null if this is not an interval
type.
|
int |
getPrecision()
Gets the JDBC-defined precision for values of this type.
|
int |
getScale()
Gets the scale of this type.
|
getFamily, getPrecedenceList, getSqlTypeName, isNullablecomputeDigest, equals, extra, getCharset, getCollation, getComparability, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getKeyType, getSqlIdentifier, getValueType, hashCode, isStruct, proto, proto, proto, proto, toStringpublic IntervalSqlType(RelDataTypeSystem typeSystem, SqlIntervalQualifier intervalQualifier, boolean isNullable)
protected void generateTypeString(StringBuilder sb, boolean withDetail)
RelDataTypeImplgenerateTypeString in class RelDataTypeImplsb - StringBuffer into which to generate the stringwithDetail - when true, all detail information needed to compute a
unique digest (and return from getFullTypeString) should
be included;public SqlIntervalQualifier getIntervalQualifier()
RelDataTypegetIntervalQualifier in interface RelDataTypegetIntervalQualifier in class RelDataTypeImplpublic IntervalSqlType combine(RelDataTypeFactoryImpl typeFactory, IntervalSqlType that)
INTERVAL DAY TO HOURINTERVAL SECOND isINTERVAL DAY TO SECONDpublic int getPrecision()
RelDataTypeReturns RelDataType.PRECISION_NOT_SPECIFIED (-1) if precision is not
applicable for this type.
getPrecision in interface RelDataTypegetPrecision in class RelDataTypeImplpublic int getScale()
RelDataTypeRelDataType.SCALE_NOT_SPECIFIED (-1) if
scale is not valid for this type.getScale in interface RelDataTypegetScale in class RelDataTypeImplCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.