Uses of Class
com.google.cloud.spanner.KeySet
-
Packages that use KeySet Package Description com.google.cloud.spanner A client for Cloud Spanner - A no-compromise relational database service. -
-
Uses of KeySet in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return KeySet Modifier and Type Method Description static KeySetKeySet. all()Creates a key set that will retrieve all rows of a table or index.KeySetKeySet.Builder. build()KeySetMutation. getKeySet()ForMutation.Op.DELETEmutations, returns the key set that defines the rows to be deleted.static KeySetKeySet. prefixRange(Key prefix)Creates a key set that covers all keys where the firstprefix.size()components matchprefixexactly.static KeySetKeySet. range(KeyRange range)Creates a key set containing a single range.static KeySetKeySet. singleKey(Key key)Creates a key set containing a single key.Methods in com.google.cloud.spanner with parameters of type KeySet Modifier and Type Method Description static MutationMutation. delete(String table, KeySet keySet)Returns a mutation that will delete all rows with primary keys covered bykeySet.List<Partition>BatchReadOnlyTransaction. partitionRead(PartitionOptions partitionOptions, String table, KeySet keys, Iterable<String> columns, Options.ReadOption... options)Returns a list ofPartitionto 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 ofPartitionto read zero or more rows from a database using an index.ResultSetReadContext. read(String table, KeySet keys, Iterable<String> columns, Options.ReadOption... options)Reads zero or more rows from a database.AsyncResultSetReadContext. readAsync(String table, KeySet keys, Iterable<String> columns, Options.ReadOption... options)Same asReadContext.read(String, KeySet, Iterable, ReadOption...), but is guaranteed to be non-blocking and will return the results as anAsyncResultSet.ResultSetReadContext. readUsingIndex(String table, String index, KeySet keys, Iterable<String> columns, Options.ReadOption... options)Reads zero or more rows from a database using an index.AsyncResultSetReadContext. readUsingIndexAsync(String table, String index, KeySet keys, Iterable<String> columns, Options.ReadOption... options)Same asReadContext.readUsingIndex(String, String, KeySet, Iterable, ReadOption...), but is guaranteed to be non-blocking and will return its results as anAsyncResultSet.
-