Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
static KeySet |
KeySet.all()
Creates a key set that will retrieve all rows of a table or index.
|
KeySet |
KeySet.Builder.build() |
KeySet |
Mutation.getKeySet()
For
Mutation.Op.DELETE mutations, returns the key set that defines the rows to be deleted. |
static KeySet |
KeySet.prefixRange(Key prefix)
Creates a key set that covers all keys where the first
prefix.size() components match
prefix exactly. |
static KeySet |
KeySet.range(KeyRange range)
Creates a key set containing a single range.
|
static KeySet |
KeySet.singleKey(Key key)
Creates a key set containing a single key.
|
Modifier and Type | Method and Description |
---|---|
static Mutation |
Mutation.delete(String table,
KeySet keySet)
Returns a mutation that will delete all rows with primary keys covered by
keySet . |
List<Partition> |
BatchReadOnlyTransaction.partitionRead(PartitionOptions partitionOptions,
String table,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Returns a list of
Partition to read zero or more rows from a database. |
List<Partition> |
BatchReadOnlyTransaction.partitionReadUsingIndex(PartitionOptions partitionOptions,
String table,
String index,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Returns a list of
Partition to read zero or more rows from a database using an index. |
ResultSet |
ReadContext.read(String table,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Reads zero or more rows from a database.
|
AsyncResultSet |
ReadContext.readAsync(String table,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Same as
#read(String, KeySet, Iterable, ReadOption...) , but is guaranteed to be
non-blocking and will return the results as an AsyncResultSet . |
ResultSet |
ReadContext.readUsingIndex(String table,
String index,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Reads zero or more rows from a database using an index.
|
AsyncResultSet |
ReadContext.readUsingIndexAsync(String table,
String index,
KeySet keys,
Iterable<String> columns,
Options.ReadOption... options)
Same as
#readUsingIndex(String, String, KeySet, Iterable, ReadOption...) , but is
guaranteed to be non-blocking and will return its results as an AsyncResultSet . |
Copyright © 2022 Google LLC. All rights reserved.