Package io.delta.kernel.types
Class DataType
Object
io.delta.kernel.types.DataType
- Direct Known Subclasses:
ArrayType,BasePrimitiveType,DecimalType,MapType,StructType
Base class for all data types.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanbooleanequivalent(DataType dataType) Are the data types same? The metadata or column names could be different.abstract inthashCode()abstract StringtoJson()Convert the data type to Delta protocol specified serialization format.abstract StringtoString()
-
Constructor Details
-
DataType
public DataType()
-
-
Method Details
-
toJson
Convert the data type to Delta protocol specified serialization format.- Returns:
- Data type serialized in JSON format.
-
equivalent
Are the data types same? The metadata or column names could be different.- Parameters:
dataType-- Returns:
-
hashCode
public abstract int hashCode() -
equals
-
toString
-