Package org.apache.drill.exec.store
Class RecordDataType
java.lang.Object
org.apache.drill.exec.store.RecordDataType
- Direct Known Subclasses:
PojoDataType
Defines names and data types of columns in a static drill table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<AbstractMap.SimpleImmutableEntry<org.apache.calcite.sql.type.SqlTypeName,
Boolean>> final org.apache.calcite.rel.type.RelDataType
getRowType
(org.apache.calcite.rel.type.RelDataTypeFactory factory) This method constructs aRelDataType
based on theRecordDataType
's field sql types and field names.
-
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
- 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 aRelDataType
based on theRecordDataType
's field sql types and field names.- Parameters:
factory
- helps construct aRelDataType
- Returns:
- the constructed type
-