Share via


DataType Class

Definition

The base type of all Spark SQL data types. Note that the implementation mirrors PySpark: spark/python/pyspark/sql/types.py The Scala version is spark/sql/catalyst/src/main/scala/org/apache/spark/sql/types/*.

public abstract class DataType
type DataType = class
Public MustInherit Class DataType
Inheritance
DataType
Derived

Constructors

DataType()

Properties

Json

The compact JSON representation of this data type.

SimpleString

Simple string version of the current data type.

TypeName

Normalized type name.

Methods

Equals(Object)

Checks if the given object is same as the current object by checking the string version of this type.

GetHashCode()

Returns the hash code of the current object.

ParseDataType(String)

Parses a JSON string to construct a DataType.

Applies to