Class MapSqlType

All Implemented Interfaces:
Serializable, Cloneable, RelDataType, RelDataTypeFamily

public class MapSqlType extends AbstractSqlType
SQL map type.
See Also:
  • Constructor Details

    • MapSqlType

      public MapSqlType(RelDataType keyType, RelDataType valueType, boolean isNullable)
      Creates a MapSqlType. This constructor should only be called from a factory method.
  • Method Details

    • getValueType

      public RelDataType getValueType()
      Description copied from interface: RelDataType
      Gets the value type if this type is a map, otherwise null.
      Specified by:
      getValueType in interface RelDataType
      Overrides:
      getValueType in class RelDataTypeImpl
      Returns:
      canonical type descriptor for value
    • getKeyType

      public RelDataType getKeyType()
      Description copied from interface: RelDataType
      Gets the key type if this type is a map, otherwise null.
      Specified by:
      getKeyType in interface RelDataType
      Overrides:
      getKeyType in class RelDataTypeImpl
      Returns:
      canonical type descriptor for key
    • generateTypeString

      protected void generateTypeString(StringBuilder sb, boolean withDetail)
      Description copied from class: RelDataTypeImpl
      Generates a string representation of this type.
      Specified by:
      generateTypeString in class RelDataTypeImpl
      Parameters:
      sb - StringBuilder into which to generate the string
      withDetail - when true, all detail information needed to compute a unique digest (and return from getFullTypeString) should be included;
    • getFamily

      public RelDataTypeFamily getFamily()
      Description copied from interface: RelDataType
      Gets a canonical object representing the family of this type. Two values can be compared if and only if their types are in the same family.
      Specified by:
      getFamily in interface RelDataType
      Overrides:
      getFamily in class AbstractSqlType
      Returns:
      canonical object representing type family, never null