Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
Key |
Key.Builder.build() |
Key |
KeyRange.getEnd()
Returns the end key of the range.
|
Key |
KeyRange.getStart()
Returns the start key of the range.
|
static Key |
Key.of(Object... values)
Construct a key with parts specified by
values . |
Modifier and Type | Method and Description |
---|---|
Iterable<Key> |
KeySet.getKeys()
Returns the keys in this set.
|
Modifier and Type | Method and Description |
---|---|
KeySet.Builder |
KeySet.Builder.addKey(Key key)
Adds a key to the key set.
|
static KeyRange |
KeyRange.closedClosed(Key start,
Key end)
Returns a key range from
start inclusive to end inclusive. |
static KeyRange |
KeyRange.closedOpen(Key start,
Key end)
Returns a key range from
start inclusive to end exclusive. |
static Mutation |
Mutation.delete(String table,
Key key)
Returns a mutation that will delete the row with primary key
key . |
static KeyRange |
KeyRange.openClosed(Key start,
Key end)
Returns a key range from
start exclusive to end inclusive. |
static KeyRange |
KeyRange.openOpen(Key start,
Key end)
Returns a key range from
start exclusive to end exclusive. |
static KeyRange |
KeyRange.prefix(Key prefix)
Returns a key range that covers all keys where the first
prefix.size() components match
prefix exactly. |
static KeySet |
KeySet.prefixRange(Key prefix)
Creates a key set that covers all keys where the first
prefix.size() components match
prefix exactly. |
Struct |
ReadContext.readRow(String table,
Key key,
Iterable<String> columns)
Reads a single row from a database, returning
null if the row does not exist. |
Struct |
ReadContext.readRowUsingIndex(String table,
String index,
Key key,
Iterable<String> columns)
Reads a single row from a database using an index, returning
null if the row does not
exist. |
KeyRange.Builder |
KeyRange.Builder.setEnd(Key key)
Sets the end key of the range.
|
KeyRange.Builder |
KeyRange.Builder.setStart(Key key)
Sets the start key of the range.
|
static KeySet |
KeySet.singleKey(Key key)
Creates a key set containing a single key.
|
Copyright © 2019 Google LLC. All rights reserved.