Class MapType

Object
io.delta.kernel.types.DataType
io.delta.kernel.types.MapType

@Evolving public class MapType extends DataType
Data type representing a map type.
Since:
3.0.0
  • Constructor Details

    • MapType

      public MapType(DataType keyType, DataType valueType, boolean valueContainsNull)
  • Method Details

    • getKeyType

      public DataType getKeyType()
    • getValueType

      public DataType getValueType()
    • isValueContainsNull

      public boolean isValueContainsNull()
    • equivalent

      public boolean equivalent(DataType dataType)
      Description copied from class: DataType
      Are the data types same? The metadata or column names could be different.
      Overrides:
      equivalent in class DataType
      Returns:
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class DataType
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class DataType
    • toJson

      public String toJson()
      Description copied from class: DataType
      Convert the data type to Delta protocol specified serialization format.
      Specified by:
      toJson in class DataType
      Returns:
      Data type serialized in JSON format.
    • toString

      public String toString()
      Specified by:
      toString in class DataType