Class: ArrayType

eclairjs/sql/types. ArrayType

The Array type of all Spark SQL data types.

Constructor

(protected) new ArrayType(elementType, containsNull)

Parameters:
Name Type Description
elementType module:eclairjs/sql/types.DataType
containsNull boolean
Source:
Example
var ArrayType = require('eclairjs/sql/types/ArrayType');
var IntegerType = require('eclair/sql/types/IntegerType');
var at = new ArrayType(IntegerType, true);

Extends

Methods

(static) apply(elementType) → {module:eclairjs/sql/types.ArrayType}

Construct a ArrayType object with the given element type. The `containsNull` is true.
Parameters:
Name Type Description
elementType module:eclairjs/sql/types.DataType
Source:
Returns:
Type
module:eclairjs/sql/types.ArrayType

containsNull() → {boolean}

Source:
Returns:
Type
boolean

defaultSize() → {integer}

The default size of a value of the ArrayType is 100 * the default size of the element type. (We assume that there are 100 elements).
Overrides:
Source:
Returns:
Type
integer

elementType() → {module:eclairjs/sql/types.DataType}

Source:
Returns:
Type
module:eclairjs/sql/types.DataType

json() → {string}

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

prettyJson() → {string}

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

simpleString() → {string}

Readable string representation for the type.
Overrides:
Source:
Returns:
Type
string

typeName() → {string}

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