Constructor
new MapType(keyType, valueType, valueContainsNull)
Parameters:
Name | Type | Description |
---|---|---|
keyType |
module:eclairjs/sql/types.DataType | The data type of map keys. |
valueType |
module:eclairjs/sql/types.DataType | The data type of map values. |
valueContainsNull |
boolean | Indicates if map values have null values. |
- Source:
Extends
Methods
(static) apply(keyType, valueType) → {module:eclairjs/sql/types.MapType}
Construct a MapType object with the given key type and value type.
Parameters:
Name | Type | Description |
---|---|---|
keyType |
module:eclairjs/sql/types.DataType | |
valueType |
module:eclairjs/sql/types.DataType |
- Source:
Returns:
defaultSize() → {integer}
The default size of a value of the MapType is 100 * (the default size of the key type + the default size of the value type).
- Overrides:
- Source:
Returns:
- Type
- integer
json() → {string}
The compact JSON representation of this data type.
- Inherited From:
- Source:
Returns:
- Type
- string
keyType() → {module:eclairjs/sql/types.DataType}
- Source:
Returns:
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
valueContainsNull() → {boolean}
- Source:
Returns:
- Type
- boolean
valueType() → {module:eclairjs/sql/types.DataType}
- Source: