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.
|
Modifier and Type | Method and Description |
---|---|
Mutation |
Mutation.WriteBuilder.build()
Returns a newly created
Mutation based on the contents of the Builder . |
static Mutation |
Mutation.delete(String table,
Key key)
Returns a mutation that will delete the row with primary key
key . |
static Mutation |
Mutation.delete(String table,
KeySet keySet)
Returns a mutation that will delete all rows with primary keys covered by
keySet . |
Modifier and Type | Method and 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 as
TransactionContext.buffer(Mutation) , but is guaranteed to be non-blocking. |
Modifier and Type | Method and 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 as
TransactionContext.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.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.bufferedWrite(Mutation mutation)
Buffers the given mutation locally on the current transaction of this
Connection . |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.bufferedWrite(Iterable<Mutation> mutations)
Buffers the given mutations locally on the current transaction of this
Connection . |
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.
|
Copyright © 2022 Google LLC. All rights reserved.