Class MapWriteFlags

java.lang.Object
com.aerospike.client.cdt.MapWriteFlags

public final class MapWriteFlags extends Object
Map write bit flags. Use BITWISE OR to combine flags. Example:

 int flags = MapWriteFlags.UPDATE_ONLY | MapWriteFlags.NO_FAIL | MapWriteFlags.PARTIAL;
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    If the key already exists, the item will be denied.
    static final int
    Default.
    static final int
    Do not raise error if a map item is denied due to write flag constraints.
    static final int
    Allow other valid map items to be committed if a map item is denied due to write flag constraints.
    static final int
    If the key already exists, the item will be overwritten.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT

      public static final int DEFAULT
      Default. Allow create or update.
      See Also:
    • CREATE_ONLY

      public static final int CREATE_ONLY
      If the key already exists, the item will be denied. If the key does not exist, a new item will be created.
      See Also:
    • UPDATE_ONLY

      public static final int UPDATE_ONLY
      If the key already exists, the item will be overwritten. If the key does not exist, the item will be denied.
      See Also:
    • NO_FAIL

      public static final int NO_FAIL
      Do not raise error if a map item is denied due to write flag constraints.
      See Also:
    • PARTIAL

      public static final int PARTIAL
      Allow other valid map items to be committed if a map item is denied due to write flag constraints.
      See Also:
  • Constructor Details

    • MapWriteFlags

      public MapWriteFlags()