Class: DataType

eclairjs/sql/types. DataType

The base type of all Spark SQL data types.

Constructor

new DataType()

Source:

Methods

(static) fromJson(json) → {module:eclairjs/sql/types.DataType}

Parameters:
Name Type Description
json string
Source:
Returns:
Type
module:eclairjs/sql/types.DataType

(abstract) defaultSize() → {integer}

The default size of a value of this data type, used internally for size estimation.
Source:
Returns:
Type
integer

json() → {string}

The compact JSON representation of this data type.
Source:
Returns:
Type
string

prettyJson() → {string}

The pretty (i.e. indented) JSON representation of this data type.
Source:
Returns:
Type
string

simpleString() → {string}

Source:
Returns:
Type
string

typeName() → {string}

Name of the type used in JSON serialization.
Source:
Returns:
Type
string