Class MutationState
Represents a composition of MutationToken's into a single unit for performing "read your own writes" or RYOW semantics on a N1QL query.
Inherited Members
Namespace: Couchbase.Query
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class MutationState : IEnumerable<MutationToken>, IEnumerable
Methods
| Edit this page View SourceAdd(params IMutationResult[])
Adds a MutationToken to the MutationState from a list of IMutationResult assuming enhanced durability is enabled.
Declaration
public MutationState Add(params IMutationResult[] mutationResults)
Parameters
Type | Name | Description |
---|---|---|
IMutationResult[] | mutationResults | The mutationResults. |
Returns
Type | Description |
---|---|
MutationState | The MutationState object itself. |
Exceptions
Type | Condition |
---|---|
ArgumentException | If a IMutationResult does not contain a valid MutationToken. |
Add(MutationState)
Adds the MutationToken's from another MutationState.
Declaration
public MutationState Add(MutationState mutationState)
Parameters
Type | Name | Description |
---|---|---|
MutationState | mutationState | State of the mutation. |
Returns
Type | Description |
---|---|
MutationState | The MutationState object itself. |
From(params IMutationResult[])
Creates a MutationToken from a list of IMutationResult's assuming enhanced durability is enabled.
Declaration
public static MutationState From(params IMutationResult[] mutationResults)
Parameters
Type | Name | Description |
---|---|---|
IMutationResult[] | mutationResults | The mutationResults. |
Returns
Type | Description |
---|---|
MutationState |
From(MutationState)
Creates aMutationState from another MutationState assuming enhanced durability is enabled.
Declaration
public static MutationState From(MutationState mutationState)
Parameters
Type | Name | Description |
---|---|---|
MutationState | mutationState | State of the mutation. |
Returns
Type | Description |
---|---|
MutationState | The MutationState object itself. |
GetEnumerator()
Returns an enumerator that iterates through the collection of MutationToken's.
Declaration
public IEnumerator<MutationToken> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<MutationToken> | An enumerator that can be used to iterate through the collection. |