Members
(static) BinaryType
Gets the BinaryType object.
- Source:
(static) BooleanType
Gets the BooleanType object.
- Source:
(static) CalendarIntervalType
Gets the CalendarIntervalType object.
- Source:
(static) DateType
Gets the DateType object.
- Source:
(static) DoubleType
Gets the DoubleType object. Note: JavaScript float types are mapped to DoubleTypes in Spark,
The user should use the DoubleType for all float processing
- Source:
(static) FloatType
Gets the FloatType object. Note: JavaScript float types are mapped to DoubleTypes in Spark,
The user should use the DoubleType for all float processing
- Source:
(static) IntegerType
Gets the IntegerType object.
- Source:
(static) LongType
Gets the LongType object. not a valid primitive type for JavaScript
- Source:
(static) NullType
Gets the NullType object.
- Source:
(static) StringType
Gets the StringType object.
- Source:
(static) TimestampType
Gets the TimestampType object.
- Source:
Methods
(static) createArrayType(elementType, containsNullopt) → {module:eclairjs/sql/types.ArrayType}
Creates an ArrayType by specifying the data type of elements (elementType) and whether the array contains null values (containsNull).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elementType |
module:eclairjs/sql/types.DataType | ||
containsNull |
boolean |
<optional> |
- Source:
Returns:
(static) createStructField(fieldName, dataType, nullable) → {module:eclairjs/sql/types.StructField}
Creates a StructField with empty metadata.
Parameters:
Name | Type | Description |
---|---|---|
fieldName |
String | |
dataType |
module:eclairjs/sql/types.DataType | |
nullable |
boolean |
- Source:
Returns:
(static) createStructType(fields) → {module:eclairjs/sql/types.StructType}
Creates a StructType with the given StructField array (fields).
Parameters:
Name | Type | Description |
---|---|---|
fields |
Array |
- Source: