public final class MapPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
attributes |
static MapPolicy |
Default
Default unordered unique key map with normal put semantics.
|
int |
flags |
int |
itemCommand |
int |
itemsCommand |
| Constructor and Description |
|---|
MapPolicy()
Default constructor.
|
MapPolicy(MapOrder order,
int flags)
Create unique key map with specified order when map does not exist.
|
MapPolicy(MapOrder order,
int flags,
boolean persistIndex)
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.
|
public static final MapPolicy Default
public final int attributes
public final int flags
public final int itemCommand
public final int itemsCommand
public MapPolicy()
public MapPolicy(MapOrder order, MapWriteMode writeMode)
This constructor should only be used for server versions < 4.3.
MapPolicy(MapOrder,int) is recommended for server versions >= 4.3.
public MapPolicy(MapOrder order, int flags)
order - map orderflags - map write flags. See MapWriteFlags.public MapPolicy(MapOrder order, int flags, boolean persistIndex)
order - map orderflags - map write flags. See MapWriteFlags.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.Copyright © 2012–2023 Aerospike, Inc. All rights reserved.