MutationState

class MutationState : Iterable<MutationToken>

Aggregation of MutationTokens from MutationResults.

Used for specifying advanced scan consistency requirements for SQL++ or Full-Text Search queries.

Thread-safe.

Constructors

Link copied to clipboard
fun MutationState()

Creates an empty mutation state.

Link copied to clipboard
fun MutationState(tokens: Iterable<MutationToken>)

Creates a mutation state representing the given tokens.

Types

Link copied to clipboard
object Companion

Functions

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.

Link copied to clipboard
fun export(): Map<String, Any?>

Exports this mutation state into a universal format, which can be used either to serialize it into a SQL++ query or to send it over the network to a different application/SDK.

Link copied to clipboard
open fun forEach(p0: Consumer<in MutationToken>)
Link copied to clipboard
open operator override fun iterator(): Iterator<MutationToken>
Link copied to clipboard
open fun spliterator(): Spliterator<MutationToken>
Link copied to clipboard
open override fun toString(): String