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_SUFFIXFields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionRelCrossType(List<RelDataType> types, List<RelDataTypeField> fields) Creates a cartesian product type. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateTypeString(StringBuilder sb, boolean withDetail) Generates a string representation of this type.getTypes()Returns the contained types.booleanisStruct()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, 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, 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:RelDataTypeQueries whether this is a structured type.- Specified by:
isStructin interfaceRelDataType- Overrides:
isStructin 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:RelDataTypeImplGenerates a string representation of this type.- Specified by:
generateTypeStringin 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;
-