Package com.aerospike.client.cdt
Class MapPolicy
java.lang.Object
com.aerospike.client.cdt.MapPolicy
Map policy directives when creating a map and writing map items.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
static final MapPolicy
Default unordered unique key map with normal put semantics.final int
final int
final int
-
Constructor Summary
ConstructorDescriptionDefault constructor.Create unique key map with specified order when map does not exist.Create unique key map with specified order and persist index flag when map does not exist.MapPolicy
(MapOrder order, MapWriteMode writeMode) Create unique key map with specified order when map does not exist. -
Method Summary
-
Field Details
-
Default
Default unordered unique key map with normal put semantics. -
attributes
public final int attributes -
flags
public final int flags -
itemCommand
public final int itemCommand -
itemsCommand
public final int itemsCommand
-
-
Constructor Details
-
MapPolicy
public MapPolicy()Default constructor. Create unordered unique key map when map does not exist. Use normal update mode when writing map items. -
MapPolicy
Create unique key map with specified order when map does not exist. Use specified write mode when writing map items.This constructor should only be used for server versions < 4.3.
MapPolicy(MapOrder,int)
is recommended for server versions >= 4.3. -
MapPolicy
Create unique key map with specified order when map does not exist.- Parameters:
order
- map orderflags
- map write flags. SeeMapWriteFlags
.
-
MapPolicy
Create unique key map with specified order and persist index flag when map does not exist.- Parameters:
order
- map orderflags
- map write flags. SeeMapWriteFlags
.persistIndex
- if true, persist map index. A map index improves lookup performance, but requires more storage. A map index can be created for a top-level ordered map only. Nested and unordered map indexes are not supported.
-