Class: MapPolicy

MapPolicy

A policy affecting the behavior of map operations.


new MapPolicy( [props])

Initializes a new MapPolicy from the provided policy values.

Parameters:
Name Type Argument Description
props Object <optional>

Policy values

Since:
  • v3.0.0
Source:

Members


order :number

Sort order for the map.

Type:
  • number
Default Value:
  • Aerospike.maps.order.UNORDERED
Source:
See:

writeFlags :number

Specifies the behavior when replacing or inserting map items.

Map write flags require server version v4.3 or later. For earier server versions, set the writeMode instead.

Type:
  • number
Since:
  • v3.5
Default Value:
  • Aerospike.maps.writeFlags.DEFAULT
Source:
See:

writeMode :number

Specifies the behavior when replacing or inserting map items.

Map write mode should only be used for server versions prior to v4.3. For server versions v4.3 or later, the use of writeFlags is recommended.

Type:
  • number
Deprecated:
  • since v3.5
Default Value:
  • Aerospike.maps.writeMode.UPDATE
Source:
See: