Package org.apache.calcite.rel.type
Class DynamicRecordType
- java.lang.Object
-
- org.apache.calcite.rel.type.RelDataTypeImpl
-
- org.apache.calcite.rel.type.DynamicRecordType
-
- All Implemented Interfaces:
RelDataType
,RelDataTypeFamily
- Direct Known Subclasses:
DynamicRecordTypeImpl
public abstract class DynamicRecordType extends RelDataTypeImpl
Specific type of RelRecordType that corresponds to a dynamic table, where columns are created as they are requested.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DYNAMIC_STAR_PREFIX
-
Fields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList
-
Fields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
-
-
Constructor Summary
Constructors Constructor Description DynamicRecordType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isDynamicStarColName(java.lang.String name)
Returns true if the column name starts with DYNAMIC_STAR_PREFIX.boolean
isDynamicStruct()
-
Methods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
computeDigest, equals, extra, generateTypeString, getCharset, getCollation, getComparability, getComponentType, getFamily, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, getSqlTypeName, getStructKind, getValueType, hashCode, isNullable, isStruct, proto, proto, proto, proto, toString
-
-
-
-
Field Detail
-
DYNAMIC_STAR_PREFIX
public static final java.lang.String DYNAMIC_STAR_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isDynamicStruct
public boolean isDynamicStruct()
- Specified by:
isDynamicStruct
in interfaceRelDataType
- Overrides:
isDynamicStruct
in classRelDataTypeImpl
- Returns:
- whether it has dynamic structure (for "schema-on-read" table)
-
isDynamicStarColName
public static boolean isDynamicStarColName(java.lang.String name)
Returns true if the column name starts with DYNAMIC_STAR_PREFIX.
-
-