package kv
- Alphabetic
- Public
- All
Type Members
-
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.
- case class ArrayAddUnique(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
- case class ArrayAppend(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
- case class ArrayInsert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
- case class ArrayPrepend(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
- case class Count(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
-
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 aMutationToken
providing additional context on the mutation.- content
the post-update content of the counter
-
case class
DecrementOptions(initial: Option[Long] = None, cas: Long = 0, 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.
- case class Exists(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
-
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.
-
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
- case class Get(path: String, _xattr: Boolean = false) extends LookupInSpec with Product with Serializable
-
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.
-
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.
-
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.
-
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.
-
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.
-
class
GetReplicaResult extends GetResult
The result of a get-from-replica request.
-
case class
GetResult(id: String, _content: Either[Array[Byte], JsonObject], flags: Int, cas: Long, expiry: Option[Duration], 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
- expiry
if the document was fetched with the
withExpiry
flag set then this will contain the document's expiration value. Otherwise it will be None.
- case class Increment(path: String, delta: Long, _xattr: Boolean = false, _createPath: Boolean = false) extends MutateInSpec with Product with Serializable
-
case class
IncrementOptions(initial: Option[Long] = None, cas: Long = 0, 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.
- case class Insert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
-
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.
-
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.
-
case class
LookupInResult(id: String, content: Seq[SubDocumentField], flags: Int, cas: Long, expiry: Option[Duration], 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
-
sealed
trait
LookupInSpec extends AnyRef
Represents a single SubDocument lookup operation, such as fetching a particular field.
-
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.
-
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 aMutationToken
providing additional context on the mutation.
-
sealed
trait
MutateInSpec extends AnyRef
Represents an intent to perform a single SubDocument mutation.
-
trait
MutateInSpecStandard extends MutateInSpec
Most SubDocument mutations are pretty similar, encapsulate the similarities here.
-
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 aMutationToken
providing additional context on the mutation.
- Since
1.0.0
-
case class
MutationState(tokens: Seq[MutationToken]) extends Product with Serializable
Represents the tokens from one or more mutations.
-
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.
- case class Remove(path: String, _xattr: Boolean = false) extends MutateInSpec with Product with Serializable
-
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.
- case class Replace(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpec with Product with Serializable
-
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.
-
sealed
class
StoreSemantics extends AnyRef
Specifies whether a document should be created, and how, if it does not already exist.
-
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.
-
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.
- case class Upsert(path: String, fragment: Try[Array[Byte]], _xattr: Boolean = false, _createPath: Boolean = false, _expandMacro: Boolean = false) extends MutateInSpecStandard with Product with Serializable
-
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
- object GetOptions extends Serializable
-
object
LookupInSpec
Methods to allow creating a sequence of
LookupInSpec
for providing to alookupIn
SubDocument method. -
object
MutateInSpec
Methods to allow constructing a sequence of
MutateInSpec
s. - object MutationState extends Serializable
- object StoreSemantics