Class DataType

Object
io.delta.kernel.types.DataType
Direct Known Subclasses:
ArrayType, BasePrimitiveType, DecimalType, MapType, StructType

@Evolving public abstract class DataType extends Object
Base class for all data types.
Since:
3.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
     
    boolean
    equivalent(DataType dataType)
    Are the data types same? The metadata or column names could be different.
    abstract int
     
    abstract String
    Convert the data type to Delta protocol specified serialization format.
    abstract String
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DataType

      public DataType()
  • Method Details

    • toJson

      public abstract String toJson()
      Convert the data type to Delta protocol specified serialization format.
      Returns:
      Data type serialized in JSON format.
    • equivalent

      public boolean equivalent(DataType dataType)
      Are the data types same? The metadata or column names could be different.
      Parameters:
      dataType -
      Returns:
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public abstract boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object