Uses of Class
com.google.cloud.spanner.Mutation
-
Packages that use Mutation Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service.com.google.cloud.spanner.connection Internal API for Google Cloud Spanner. -
-
Uses of Mutation in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return Mutation Modifier and Type Method Description Mutation
Mutation.WriteBuilder. build()
Returns a newly createdMutation
based on the contents of theBuilder
.static Mutation
Mutation. delete(String table, Key key)
Returns a mutation that will delete the row with primary keykey
.static Mutation
Mutation. delete(String table, KeySet keySet)
Returns a mutation that will delete all rows with primary keys covered bykeySet
.Methods in com.google.cloud.spanner with parameters of type Mutation Modifier and Type Method Description void
TransactionContext. buffer(Mutation mutation)
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.Method parameters in com.google.cloud.spanner with type arguments of type Mutation Modifier and Type Method Description void
TransactionContext. buffer(Iterable<Mutation> mutations)
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.com.google.cloud.Timestamp
DatabaseClient. write(Iterable<Mutation> mutations)
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.CommitResponse
DatabaseClient. writeAtLeastOnceWithOptions(Iterable<Mutation> mutations, Options.TransactionOption... options)
Writes the given mutations atomically to the database without replay protection.CommitResponse
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
Methods in com.google.cloud.spanner.connection with parameters of type Mutation Modifier and Type Method Description void
Connection. bufferedWrite(Mutation mutation)
Buffers the given mutation locally on the current transaction of thisConnection
.void
Connection. write(Mutation mutation)
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.Method parameters in com.google.cloud.spanner.connection with type arguments of type Mutation Modifier and Type Method Description void
Connection. bufferedWrite(Iterable<Mutation> mutations)
Buffers the given mutations locally on the current transaction of thisConnection
.void
Connection. write(Iterable<Mutation> mutations)
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.
-