Class RecordDataType

java.lang.Object
org.apache.drill.exec.store.RecordDataType
Direct Known Subclasses:
PojoDataType

public abstract class RecordDataType extends Object
Defines names and data types of columns in a static drill table.
  • Constructor Details

    • RecordDataType

      public RecordDataType()
  • Method Details

    • getFieldSqlTypeNames

      public abstract List<AbstractMap.SimpleImmutableEntry<org.apache.calcite.sql.type.SqlTypeName,Boolean>> getFieldSqlTypeNames()
      Returns:
      the SqlTypeName of columns in the table as a pair with its nullability
    • getFieldNames

      public abstract List<String> getFieldNames()
      Returns:
      the column names in the table
    • getRowType

      public final org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory factory)
      This method constructs a RelDataType based on the RecordDataType's field sql types and field names.
      Parameters:
      factory - helps construct a RelDataType
      Returns:
      the constructed type