MutationState

class MutationState : Iterable<MutationToken>

Aggregation of MutationTokens from MutationResults.

Used for specifying advanced scan consistency requirements for N1QL or FTS queries.

Thread-safe.

Constructors

MutationState
Link copied to clipboard
fun MutationState()
Creates an empty mutation state.
MutationState
Link copied to clipboard
fun MutationState(tokens: Iterable<MutationToken>)
Creates a mutation state representing the given tokens.

Types

Companion
Link copied to clipboard
object Companion

Functions

add
Link copied to clipboard
fun add(token: MutationToken)
Adds the given token to this state.
fun add(result: MutationResult)
Adds the given mutation result's token to this state.
export
Link copied to clipboard
fun export(): Map<String, Any?>
Exports the this mutation state into a universal format, which can be used either to serialize it into a N1QL query or to send it over the network to a different application/SDK.
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in MutationToken>)
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<MutationToken>
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<MutationToken>
toString
Link copied to clipboard
open override fun toString(): String