@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(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,
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() |
StructuredType |
getStructuredType() |
getComparability, getSqlIdentifier, setFamily
getPrecedenceList, getSqlTypeName, isNullable
equals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toString
public StructuredRelDataType(StructuredType structuredType, List<org.apache.calcite.rel.type.RelDataTypeField> fields)
public static StructuredRelDataType create(org.apache.flink.table.planner.calcite.FlinkTypeFactory factory, StructuredType structuredType)
public StructuredType getStructuredType()
public StructuredRelDataType createWithNullability(boolean nullable)
public org.apache.calcite.rel.type.StructKind getStructKind()
getStructKind
in interface org.apache.calcite.rel.type.RelDataType
getStructKind
in class org.apache.calcite.rel.type.RelDataTypeImpl
public org.apache.calcite.rel.type.RelDataTypeFamily getFamily()
getFamily
in interface org.apache.calcite.rel.type.RelDataType
getFamily
in class org.apache.calcite.sql.type.ObjectSqlType
protected void generateTypeString(StringBuilder sb, boolean withDetail)
generateTypeString
in class org.apache.calcite.sql.type.ObjectSqlType
protected void computeDigest()
computeDigest
in class org.apache.calcite.rel.type.RelDataTypeImpl
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.