@Internal
public final class StructuredRelDataType
extends org.apache.calcite.sql.type.ObjectSqlType
RelDataType representation of a StructuredType.
It extends ObjectSqlType for preserving the original logical type (including an
optional implementation class) and supporting anonymous/unregistered structured types from Table
API.
| Constructor and Description |
|---|
StructuredRelDataType(org.apache.flink.table.types.logical.StructuredType structuredType,
List<org.apache.calcite.rel.type.RelDataTypeField> fields) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeDigest() |
static StructuredRelDataType |
create(org.apache.flink.table.planner.calcite.FlinkTypeFactory factory,
org.apache.flink.table.types.logical.StructuredType structuredType) |
StructuredRelDataType |
createWithNullability(boolean nullable) |
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail) |
org.apache.calcite.rel.type.RelDataTypeFamily |
getFamily() |
org.apache.calcite.rel.type.StructKind |
getStructKind() |
org.apache.flink.table.types.logical.StructuredType |
getStructuredType() |
getComparability, getSqlIdentifier, setFamilygetPrecedenceList, getSqlTypeName, isNullableequals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringpublic StructuredRelDataType(org.apache.flink.table.types.logical.StructuredType structuredType,
List<org.apache.calcite.rel.type.RelDataTypeField> fields)
public static StructuredRelDataType create(org.apache.flink.table.planner.calcite.FlinkTypeFactory factory, org.apache.flink.table.types.logical.StructuredType structuredType)
public org.apache.flink.table.types.logical.StructuredType getStructuredType()
public StructuredRelDataType createWithNullability(boolean nullable)
public org.apache.calcite.rel.type.StructKind getStructKind()
getStructKind in interface org.apache.calcite.rel.type.RelDataTypegetStructKind in class org.apache.calcite.rel.type.RelDataTypeImplpublic org.apache.calcite.rel.type.RelDataTypeFamily getFamily()
getFamily in interface org.apache.calcite.rel.type.RelDataTypegetFamily in class org.apache.calcite.sql.type.ObjectSqlTypeprotected void generateTypeString(StringBuilder sb, boolean withDetail)
generateTypeString in class org.apache.calcite.sql.type.ObjectSqlTypeprotected void computeDigest()
computeDigest in class org.apache.calcite.rel.type.RelDataTypeImplCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.