Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
Modifier and Type | Method and Description |
---|---|
static TimestampBound |
TimestampBound.ofExactStaleness(long num,
TimeUnit units)
Returns a timestamp bound that will perform reads and queries at an exact staleness.
|
static TimestampBound |
TimestampBound.ofMaxStaleness(long num,
TimeUnit units)
Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at
most
num units stale. |
static TimestampBound |
TimestampBound.ofMinReadTimestamp(Timestamp timestamp)
Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at
least
timestamp . |
static TimestampBound |
TimestampBound.ofReadTimestamp(Timestamp timestamp)
Returns a timestamp bound that will perform reads and queries at the given timestamp.
|
static TimestampBound |
TimestampBound.strong()
Returns a timestamp bound that will perform reads and queries at a timestamp where all
previously committed transactions are visible.
|
Modifier and Type | Method and Description |
---|---|
BatchReadOnlyTransaction |
BatchClientImpl.batchReadOnlyTransaction(TimestampBound bound) |
BatchReadOnlyTransaction |
BatchClient.batchReadOnlyTransaction(TimestampBound bound)
Returns a
BatchReadOnlyTransaction context in which multiple reads and/or queries can
be performed. |
ReadOnlyTransaction |
DatabaseClient.readOnlyTransaction(TimestampBound bound)
Returns a read-only transaction context in which a multiple reads and/or queries can be
performed at the given timestamp bound.
|
ReadContext |
DatabaseClient.singleUse(TimestampBound bound)
Returns a context in which a single read can be performed at the given timestamp bound.
|
ReadOnlyTransaction |
DatabaseClient.singleUseReadOnlyTransaction(TimestampBound bound)
Returns a read-only transaction context in which a single read or query can be performed at
given timestamp bound.
|
Copyright © 2019 Google LLC. All rights reserved.