Class StructuredRelDataType
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeImpl
org.apache.calcite.sql.type.AbstractSqlType
org.apache.calcite.sql.type.ObjectSqlType
org.apache.flink.table.planner.plan.schema.StructuredRelDataType
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rel.type.RelDataTypeFamily
@Internal
public final class StructuredRelDataType
extends org.apache.calcite.sql.type.ObjectSqlType
The
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.
- See Also:
-
Field Summary
Fields inherited from class org.apache.calcite.sql.type.AbstractSqlType
isNullable, typeNameFields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIXFields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionStructuredRelDataType(org.apache.flink.table.types.logical.StructuredType structuredType, List<org.apache.calcite.rel.type.RelDataTypeField> fields) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic StructuredRelDataTypecreate(FlinkTypeFactory factory, org.apache.flink.table.types.logical.StructuredType structuredType) createWithNullability(boolean nullable) protected voidgenerateTypeString(StringBuilder sb, boolean withDetail) org.apache.calcite.rel.type.RelDataTypeFamilyorg.apache.calcite.rel.type.StructKindorg.apache.flink.table.types.logical.StructuredTypeMethods inherited from class org.apache.calcite.sql.type.ObjectSqlType
getComparability, getSqlIdentifier, setFamilyMethods inherited from class org.apache.calcite.sql.type.AbstractSqlType
getPrecedenceList, getSqlTypeName, isNullableMethods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
equals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.type.RelDataType
equalsSansFieldNames
-
Constructor Details
-
StructuredRelDataType
public StructuredRelDataType(org.apache.flink.table.types.logical.StructuredType structuredType, List<org.apache.calcite.rel.type.RelDataTypeField> fields)
-
-
Method Details
-
create
public static StructuredRelDataType create(FlinkTypeFactory factory, org.apache.flink.table.types.logical.StructuredType structuredType) -
getStructuredType
public org.apache.flink.table.types.logical.StructuredType getStructuredType() -
createWithNullability
-
getStructKind
public org.apache.calcite.rel.type.StructKind getStructKind()- Specified by:
getStructKindin interfaceorg.apache.calcite.rel.type.RelDataType- Overrides:
getStructKindin classorg.apache.calcite.rel.type.RelDataTypeImpl
-
getFamily
public org.apache.calcite.rel.type.RelDataTypeFamily getFamily()- Specified by:
getFamilyin interfaceorg.apache.calcite.rel.type.RelDataType- Overrides:
getFamilyin classorg.apache.calcite.sql.type.ObjectSqlType
-
generateTypeString
- Overrides:
generateTypeStringin classorg.apache.calcite.sql.type.ObjectSqlType
-
computeDigest
protected void computeDigest()- Overrides:
computeDigestin classorg.apache.calcite.rel.type.RelDataTypeImpl
-