java.lang.Object
java.lang.Enum<Mutation>
com.couchbase.client.core.message.kv.subdoc.multi.Mutation
All Implemented Interfaces:
Serializable, Comparable<Mutation>, java.lang.constant.Constable

@Committed
@Public
public enum Mutation
extends Enum<Mutation>
Enumeration of possible mutations inside a sub-document MutationCommand.
Since:
1.2
Author:
Simon Baslé
  • Enum Constant Details

    • UPSERTDOC

      public static final Mutation UPSERTDOC
    • COUNTER

      public static final Mutation COUNTER
    • REPLACE

      public static final Mutation REPLACE
    • DICT_ADD

      public static final Mutation DICT_ADD
    • DICT_UPSERT

      public static final Mutation DICT_UPSERT
    • ARRAY_PUSH_FIRST

      public static final Mutation ARRAY_PUSH_FIRST
    • ARRAY_PUSH_LAST

      public static final Mutation ARRAY_PUSH_LAST
    • ARRAY_ADD_UNIQUE

      public static final Mutation ARRAY_ADD_UNIQUE
    • ARRAY_INSERT

      public static final Mutation ARRAY_INSERT
    • DELETE

      public static final Mutation DELETE
  • Method Details

    • values

      public static Mutation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Mutation valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • opCode

      public byte opCode()