Uses of Class
com.google.cloud.spanner.TimestampBound
Packages that use TimestampBound
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
Internal API for Google Cloud Spanner.
-
Uses of TimestampBound in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return TimestampBoundModifier and TypeMethodDescriptionstatic TimestampBoundTimestampBound.ofExactStaleness(long num, TimeUnit units) Returns a timestamp bound that will perform reads and queries at an exact staleness.static TimestampBoundTimestampBound.ofMaxStaleness(long num, TimeUnit units) Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at mostnum unitsstale.static TimestampBoundTimestampBound.ofMinReadTimestamp(com.google.cloud.Timestamp timestamp) Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at leasttimestamp.static TimestampBoundTimestampBound.ofReadTimestamp(com.google.cloud.Timestamp timestamp) Returns a timestamp bound that will perform reads and queries at the given timestamp.static TimestampBoundTimestampBound.strong()Returns a timestamp bound that will perform reads and queries at a timestamp where all previously committed transactions are visible.Methods in com.google.cloud.spanner with parameters of type TimestampBoundModifier and TypeMethodDescriptionBatchClient.batchReadOnlyTransaction(TimestampBound bound) Returns aBatchReadOnlyTransactioncontext in which multiple reads and/or queries can be performed.BatchClientImpl.batchReadOnlyTransaction(TimestampBound bound) 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.DatabaseClient.singleUse(TimestampBound bound) Returns a context in which a single read can be performed at the given timestamp bound.DatabaseClient.singleUseReadOnlyTransaction(TimestampBound bound) Returns a read-only transaction context in which a single read or query can be performed at given timestamp bound. -
Uses of TimestampBound in com.google.cloud.spanner.connection
Methods in com.google.cloud.spanner.connection that return TimestampBoundMethods in com.google.cloud.spanner.connection with parameters of type TimestampBoundModifier and TypeMethodDescriptionvoidConnection.setReadOnlyStaleness(TimestampBound staleness) Sets the staleness to use for the current read-only transaction.