Class ArrayType

Object
io.delta.kernel.types.DataType
io.delta.kernel.types.ArrayType

@Evolving public class ArrayType extends DataType
Represent array data type
Since:
3.0.0
  • Constructor Details

    • ArrayType

      public ArrayType(DataType elementType, boolean containsNull)
  • Method Details

    • getElementType

      public DataType getElementType()
    • containsNull

      public boolean containsNull()
    • 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