Uses of Class
com.google.cloud.spanner.Key
Packages that use Key
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of Key in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return KeyModifier and TypeMethodDescriptionKey.Builder.build()KeyRange.getEnd()Returns the end key of the range.KeyRange.getStart()Returns the start key of the range.static KeyConstruct a key with parts specified byvalues.Methods in com.google.cloud.spanner that return types with arguments of type KeyMethods in com.google.cloud.spanner with parameters of type KeyModifier and TypeMethodDescriptionAdds a key to the key set.static KeyRangeKeyRange.closedClosed(Key start, Key end) Returns a key range fromstartinclusive toendinclusive.static KeyRangeKeyRange.closedOpen(Key start, Key end) Returns a key range fromstartinclusive toendexclusive.static MutationReturns a mutation that will delete the row with primary keykey.static KeyRangeKeyRange.openClosed(Key start, Key end) Returns a key range fromstartexclusive toendinclusive.static KeyRangeReturns a key range fromstartexclusive toendexclusive.static KeyRangeReturns a key range that covers all keys where the firstprefix.size()components matchprefixexactly.static KeySetKeySet.prefixRange(Key prefix) Creates a key set that covers all keys where the firstprefix.size()components matchprefixexactly.Reads a single row from a database, returningnullif the row does not exist.com.google.api.core.ApiFuture<Struct>ReadContext.readRowAsync(String table, Key key, Iterable<String> columns) Same asReadContext.readRow(String, Key, Iterable), but is guaranteed to be non-blocking.Reads a single row from a database using an index, returningnullif the row does not exist.com.google.api.core.ApiFuture<Struct>Same asReadContext.readRowUsingIndex(String, String, Key, Iterable), but is guaranteed to be non-blocking.Sets the end key of the range.Sets the start key of the range.static KeySetCreates a key set containing a single key.