Class ArrayAddUnique

java.lang.Object
com.couchbase.client.java.kv.MutateInSpec
com.couchbase.client.java.kv.ArrayAddUnique

public class ArrayAddUnique
extends MutateInSpec
An intention to perform a SubDocument array add-unique operation.
Since:
1.0.0
Author:
Graham Pople
  • Method Details

    • xattr

      public ArrayAddUnique xattr()
      Sets that this is an extended attribute (xattr) field.
      Returns:
      this, for chaining
    • createPath

      public ArrayAddUnique createPath()
      Sets that this parent fields should be created automatically.
      Returns:
      this, for chaining
    • encode

      public SubdocMutateRequest.Command encode​(JsonSerializer serializer, int originalIndex)
      Description copied from class: MutateInSpec
      Internal operation called from the encoding side that encodes the spec into its internal representation.
      Specified by:
      encode in class MutateInSpec
      Parameters:
      serializer - the serializer that should be used.
      originalIndex - the original index of the command.
      Returns:
      the encoded command.