Package org.apache.calcite.rel.type
Class RelCrossType
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeImpl
org.apache.calcite.rel.type.RelCrossType
- All Implemented Interfaces:
RelDataType
,RelDataTypeFamily
Type of the cartesian product of two or more sets of records.
Its fields are those of its constituent records, but unlike a
RelRecordType
, those fields' names are not necessarily distinct.
-
Field Summary
Fields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIX
Fields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
-
Constructor Summary
ConstructorDescriptionRelCrossType
(List<RelDataType> types, List<RelDataTypeField> fields) Creates a cartesian product type. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateTypeString
(StringBuilder sb, boolean withDetail) Generates a string representation of this type.getTypes()
Returns the contained types.boolean
isStruct()
Queries whether this is a structured type.Methods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
computeDigest, equals, extra, getCharset, getCollation, getComparability, getComponentType, getFamily, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, getSqlTypeName, getStructKind, getValueType, hashCode, isDynamicStruct, isNullable, proto, proto, proto, proto, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.type.RelDataType
equalsSansFieldNames, equalsSansFieldNamesAndNullability, getMeasureElementType, isMeasure
-
Constructor Details
-
RelCrossType
Creates a cartesian product type. This should only be called from a factory method.
-
-
Method Details
-
isStruct
public boolean isStruct()Description copied from interface:RelDataType
Queries whether this is a structured type.- Specified by:
isStruct
in interfaceRelDataType
- Overrides:
isStruct
in classRelDataTypeImpl
- Returns:
- whether this type has fields; examples include rows and user-defined structured types in SQL, and classes in Java
-
getTypes
Returns the contained types.- Returns:
- data types.
-
generateTypeString
Description copied from class:RelDataTypeImpl
Generates a string representation of this type.- Specified by:
generateTypeString
in classRelDataTypeImpl
- Parameters:
sb
- StringBuilder into which to generate the stringwithDetail
- when true, all detail information needed to compute a unique digest (and return from getFullTypeString) should be included;
-