Package org.apache.drill.exec.dotdrill
Class View.Field
java.lang.Object
org.apache.drill.exec.dotdrill.View.Field
- Enclosing class:
- View
-
Constructor Summary
ConstructorDescriptionField
(String name, org.apache.calcite.sql.type.SqlTypeName type, Integer precision, Integer scale, org.apache.calcite.avatica.util.TimeUnit startUnit, org.apache.calcite.avatica.util.TimeUnit endUnit, Integer fractionalSecondPrecision, Boolean isNullable, View.Field keyType, View.Field valueType) Field
(org.apache.calcite.rel.type.RelDataType dataType) Overloaded constructor for creation of fields which carry only about dataType and don't represent named columns. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.avatica.util.TimeUnit
Gets the time range end unit of the type qualifier of the interval data type descriptor of this field (iff interval type).Gets the fractional second precision of the type qualifier of the interval data type descriptor of this field (iff interval type).org.apache.calcite.sql.SqlIntervalQualifier
Gets the interval type qualifier of the interval data type descriptor of this field (iff interval type).Gets the nullability of the data type desription of this field.Gets key type for fields whose type isSqlTypeName.MAP
getName()
Gets the name of this field.Gets the precision of the data type descriptor of this field.getScale()
Gets the numeric scale of the data type descriptor of this field, for numeric types.org.apache.calcite.avatica.util.TimeUnit
Gets the time range start unit of the type qualifier of the interval data type descriptor of this field (iff interval type).org.apache.calcite.sql.type.SqlTypeName
getType()
Gets the data type of this field.Gets value type for fields whose type isSqlTypeName.MAP
-
Constructor Details
-
Field
public Field(String name, org.apache.calcite.sql.type.SqlTypeName type, Integer precision, Integer scale, org.apache.calcite.avatica.util.TimeUnit startUnit, org.apache.calcite.avatica.util.TimeUnit endUnit, Integer fractionalSecondPrecision, Boolean isNullable, View.Field keyType, View.Field valueType) -
Field
-
Field
public Field(org.apache.calcite.rel.type.RelDataType dataType) Overloaded constructor for creation of fields which carry only about dataType and don't represent named columns. Example of such usage is key and value types of Map columns.- Parameters:
dataType
- field type
-
-
Method Details
-
getName
Gets the name of this field. -
getType
public org.apache.calcite.sql.type.SqlTypeName getType()Gets the data type of this field. (Data type only; not full datatype descriptor.) -
getPrecision
Gets the precision of the data type descriptor of this field. The precision is the precision for a numeric type, the length for a string type, or the start unit precision for an interval type. -
getScale
Gets the numeric scale of the data type descriptor of this field, for numeric types. -
getIntervalQualifier
public org.apache.calcite.sql.SqlIntervalQualifier getIntervalQualifier()Gets the interval type qualifier of the interval data type descriptor of this field (iff interval type). -
getStartUnit
public org.apache.calcite.avatica.util.TimeUnit getStartUnit()Gets the time range start unit of the type qualifier of the interval data type descriptor of this field (iff interval type). -
getEndUnit
public org.apache.calcite.avatica.util.TimeUnit getEndUnit()Gets the time range end unit of the type qualifier of the interval data type descriptor of this field (iff interval type). -
getFractionalSecondPrecision
Gets the fractional second precision of the type qualifier of the interval data type descriptor of this field (iff interval type). Gets the interval type descriptor's fractional second precision (iff interval type). -
getIsNullable
Gets the nullability of the data type desription of this field. -
getKeyType
Gets key type for fields whose type isSqlTypeName.MAP
- Returns:
- key type of map
-
getValueType
Gets value type for fields whose type isSqlTypeName.MAP
- Returns:
- value type of map
-