Constructor
new MapObjectType(mapSubTypeopt, keyTypeopt, valueTypeopt)
Public constructor.
Optionally specifies a kind of map and types of keys and values in the map.
If a kind of map is not specified, MAP_SUBTYPE.HASH_MAP is assumed.
If key and/or value type is not specified then during operations the Ignite client will try to make automatic mapping between JavaScript types and Ignite object types - according to the mapping table defined in the description of the ObjectType class.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
mapSubType |
MapObjectType.MAP_SUBTYPE |
<optional> |
MAP_SUBTYPE.HASH_MAP | map subtype, one of the MapObjectType.MAP_SUBTYPE constants. |
keyType |
ObjectType.PRIMITIVE_TYPE | CompositeType |
<optional> |
null | type of the keys in the map:
|
valueType |
ObjectType.PRIMITIVE_TYPE | CompositeType |
<optional> |
null | type of the values in the map:
|
- Source:
Extends
Members
(static, readonly) MAP_SUBTYPE
Supported kinds of map.
Properties:
Name | Type | Description |
---|---|---|
HASH_MAP |
1 |
|
LINKED_HASH_MAP |
2 |
- Source: