Class View.Field

java.lang.Object
org.apache.drill.exec.dotdrill.View.Field
Enclosing class:
View

public static class View.Field extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Field(String name, org.apache.calcite.rel.type.RelDataType dataType)
     
    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(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 Type
    Method
    Description
    org.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 is SqlTypeName.MAP
    Gets the name of this field.
    Gets the precision of the data type descriptor of this field.
    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
    Gets the data type of this field.
    Gets value type for fields whose type is SqlTypeName.MAP

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Field(String name, org.apache.calcite.rel.type.RelDataType dataType)
    • 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

      public String 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

      public Integer 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

      public Integer 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

      public Integer 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

      public Boolean getIsNullable()
      Gets the nullability of the data type desription of this field.
    • getKeyType

      public View.Field getKeyType()
      Gets key type for fields whose type is SqlTypeName.MAP
      Returns:
      key type of map
    • getValueType

      public View.Field getValueType()
      Gets value type for fields whose type is SqlTypeName.MAP
      Returns:
      value type of map