package kv

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AppendOptions(cas: Long = 0, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how a binary append operation is performed.

  2. case class ArrayAddUnique(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  3. case class ArrayAppend(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  4. case class ArrayInsert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  5. case class ArrayPrepend(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  6. case class Count(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
  7. case class CounterResult(cas: Long, mutationToken: Option[MutationToken], content: Long) extends HasDurabilityTokens with Product with Serializable

    Contains the result of a successful mutation against a counter document or field.

    Contains the result of a successful mutation against a counter document or field.

    cas

    each Couchbase document has a CAS value, which is increased (not necessarily monotonically) on each successful mutation. This is the updated post-mutation value.

    mutationToken

    if the com.couchbase.client.scala.env.ClusterEnvironment's ioConfig() .mutationTokensEnabled() field is true (which is recommended), this will contain a MutationToken providing additional context on the mutation.

    content

    the post-update content of the counter

  8. case class DecrementOptions(initial: Option[Long] = None, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, expiry: Duration = 0.seconds) extends Product with Serializable

    Provides control over how an decrement operation is performed.

  9. case class Exists(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
  10. case class ExistsOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how an exists operation is performed.

  11. case class ExistsResult(exists: Boolean, cas: Long) extends Product with Serializable

    The result of an exists operation.

    The result of an exists operation.

    exists

    whether the document exists

  12. case class Get(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
  13. case class GetAllReplicasOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a get-all-replicas operation is performed.

  14. case class GetAndLockOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a get-and-lock operation is performed.

  15. case class GetAndTouchOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a get-and-touch operation is performed.

  16. case class GetAnyReplicaOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a get-any-replica operation is performed.

  17. case class GetOptions(withExpiry: Boolean = false, project: Seq[String] = GetOptions.EmptyProject, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a get operation is performed.

  18. class GetReplicaResult extends GetResult

    The result of a get-from-replica request.

  19. case class GetResult(id: String, _content: Either[Array[Byte], JsonObject], flags: Int, cas: Long, expiryTime: Option[Instant], transcoder: Transcoder) extends Product with Serializable

    The result of a get operation, e.g.

    The result of a get operation, e.g. the contents of a document.

    id

    the unique identifier of the document

    cas

    the document's CAS value at the time of the lookup

    expiryTime

    the document's expiration time, if it was fetched with the withExpiry flag set. If that flag was not set, this will be None. The time is the point in time when the document expires.

  20. case class Increment(path: String, delta: Long, _xattr: Boolean = false, _createPath: Boolean = false) extends MutateInSpec with Product with Serializable
  21. case class IncrementOptions(initial: Option[Long] = None, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, expiry: Duration = 0.seconds) extends Product with Serializable

    Provides control over how an increment operation is performed.

  22. case class Insert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  23. case class InsertOptions(durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None, expiry: Duration = 0.seconds) extends Product with Serializable

    Provides control over how an insert operation is performed.

  24. case class LookupInOptions(withExpiry: Boolean = false, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable

    Provides control over how a lookupIn Sub-Document operation is performed.

  25. case class LookupInResult(id: String, content: Seq[SubDocumentField], flags: Int, cas: Long, expiryTime: Option[Instant], transcoder: Transcoder) extends Product with Serializable

    The results of a SubDocument 'lookupIn' operation.

    The results of a SubDocument 'lookupIn' operation.

    When doing a lookupIn the application provides a sequence of LookupInSpec. The indexes into this sequence are used when retrieving the results.

    id

    the unique identifier of the document

    cas

    the document's CAS value at the time of the lookup

    expiryTime

    the document's expiration time, if it was fetched with the withExpiry flag set. If that flag was not set, this will be None. The time is the point in time when the document expires.

  26. sealed trait LookupInSpec extends AnyRef

    Represents a single SubDocument lookup operation, such as fetching a particular field.

  27. case class MutateInOptions(cas: Long = 0, document: StoreSemantics = StoreSemantics.Replace, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None, expiry: Duration = 0.seconds, accessDeleted: Boolean = false, createAsDeleted: Boolean = false) extends Product with Serializable

    Provides control over how a mutateIn operation is performed.

  28. case class MutateInResult(id: String, content: Array[SubDocumentField], cas: Long, mutationToken: Option[MutationToken]) extends HasDurabilityTokens with Product with Serializable

    The results of a SubDocument mutateIn operation.

    The results of a SubDocument mutateIn operation.

    When doing a mutateIn the application provides a sequence of MutateInSpec. The indexes into this sequence are used when retrieving the results.

    id

    the unique identifier of the document

    cas

    the document's CAS value at the time of the lookup

    mutationToken

    if the com.couchbase.client.scala.env.ClusterEnvironment's ioConfig() .mutationTokensEnabled() field is true (which is recommended), this will contain a MutationToken providing additional context on the mutation.

  29. sealed trait MutateInSpec extends AnyRef

    Represents an intent to perform a single SubDocument mutation.

  30. trait MutateInSpecStandard extends MutateInSpec

    Most SubDocument mutations are pretty similar, encapsulate the similarities here.

  31. case class MutationResult(cas: Long, mutationToken: Option[MutationToken]) extends HasDurabilityTokens with Product with Serializable

    Contains the result of a successful mutation.

    Contains the result of a successful mutation.

    cas

    each Couchbase document has a CAS value, which is increased (not necessarily monotonically) on each successful mutation. This is the updated post-mutation value.

    mutationToken

    if the com.couchbase.client.scala.env.ClusterEnvironment's ioConfig() .mutationTokensEnabled() field is true (which is recommended), this will contain a MutationToken providing additional context on the mutation.

    Since

    1.0.0

  32. case class MutationState(tokens: Seq[MutationToken]) extends Product with Serializable

    Represents the tokens from one or more mutations.

  33. case class PrependOptions(cas: Long = 0, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how a binary prepend operation is performed.

  34. case class Remove(path: String, _xattr: Boolean = false) extends MutateInSpec with Product with Serializable
  35. case class RemoveOptions(cas: Long = 0, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how a remove operation is performed.

  36. case class Replace(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpec with Product with Serializable
  37. case class ReplaceOptions(cas: Long = 0, durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None, expiry: Duration = 0.seconds) extends Product with Serializable

    Provides control over how a replace operation is performed.

  38. sealed class StoreSemantics extends AnyRef

    Specifies whether a document should be created, and how, if it does not already exist.

  39. case class TouchOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how a touch operation is performed.

  40. case class UnlockOptions(timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None) extends Product with Serializable

    Provides control over how an unlock operation is performed.

  41. case class Upsert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
  42. case class UpsertOptions(durability: Durability = Disabled, timeout: Duration = Duration.MinusInf, parentSpan: Option[RequestSpan] = None, retryStrategy: Option[RetryStrategy] = None, transcoder: Option[Transcoder] = None, expiry: Duration = 0.seconds) extends Product with Serializable

    Provides control over how an upsert operation is performed.

Value Members

  1. object GetOptions extends Serializable
  2. object LookupInSpec

    Methods to allow creating a sequence of LookupInSpec for providing to a lookupIn SubDocument method.

  3. object MutateInSpec

    Methods to allow constructing a sequence of MutateInSpecs.

  4. object MutationState extends Serializable
  5. object StoreSemantics