Uses of Class
com.google.cloud.spanner.Mutation
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
Internal API for Google Cloud Spanner.
-
Uses of Mutation in com.google.cloud.spanner
Modifier and TypeMethodDescriptionMutation.WriteBuilder.build()
Returns a newly createdMutation
based on the contents of theBuilder
.static Mutation
Returns a mutation that will delete the row with primary keykey
.static Mutation
Returns a mutation that will delete all rows with primary keys covered bykeySet
.Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<Mutation>
MutationGroup.getMutations()
Returns corresponding mutations for this MutationGroup.Modifier and TypeMethodDescriptionvoid
Buffers a single mutation to be applied if the transaction commits successfully.default com.google.api.core.ApiFuture<Void>
TransactionContext.bufferAsync
(Mutation mutation) Same asTransactionContext.buffer(Mutation)
, but is guaranteed to be non-blocking.static MutationGroup
Creates aMutationGroup
given a vararg of mutations.Modifier and TypeMethodDescriptionvoid
Buffers mutations to be applied if the transaction commits successfully.default com.google.api.core.ApiFuture<Void>
TransactionContext.bufferAsync
(Iterable<Mutation> mutations) Same asTransactionContext.buffer(Iterable)
, but is guaranteed to be non-blocking.static MutationGroup
Creates aMutationGroup
given an iterable of mutations.com.google.cloud.Timestamp
Writes the given mutations atomically to the database.com.google.cloud.Timestamp
DatabaseClient.writeAtLeastOnce
(Iterable<Mutation> mutations) Writes the given mutations atomically to the database without replay protection.DatabaseClient.writeAtLeastOnceWithOptions
(Iterable<Mutation> mutations, Options.TransactionOption... options) Writes the given mutations atomically to the database without replay protection.DatabaseClient.writeWithOptions
(Iterable<Mutation> mutations, Options.TransactionOption... options) Writes the given mutations atomically to the database with the given options. -
Uses of Mutation in com.google.cloud.spanner.connection
Modifier and TypeMethodDescriptionvoid
Connection.bufferedWrite
(Mutation mutation) Buffers the given mutation locally on the current transaction of thisConnection
.void
Writes the specified mutation directly to the database and commits the change.com.google.api.core.ApiFuture<Void>
Connection.writeAsync
(Mutation mutation) Writes the specified mutation directly to the database and commits the change.Modifier and TypeMethodDescriptionvoid
Connection.bufferedWrite
(Iterable<Mutation> mutations) Buffers the given mutations locally on the current transaction of thisConnection
.void
Writes the specified mutations directly to the database and commits the changes.com.google.api.core.ApiFuture<Void>
Connection.writeAsync
(Iterable<Mutation> mutations) Writes the specified mutations directly to the database and commits the changes.