DataType DataType 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
DataTypeDataTypeDataType
Derived

Constructors

DataType() DataType() DataType()

Properties

Json Json Json

The compact JSON representation of this data type.

SimpleString SimpleString SimpleString

Simple string version of the current data type.

TypeName TypeName TypeName

Normalized type name.

Methods

Equals(Object) Equals(Object) Equals(Object)

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

GetHashCode() GetHashCode() GetHashCode()

Returns the hash code of the current object.

ParseDataType(String) ParseDataType(String) ParseDataType(String)

Parses a JSON string to construct a DataType.

Applies to