7 Reading Table Rows
There are several ways to retrieve table rows from the store. You can:
-
Retrieve a single row at a time using the
TableAPI.get()
method. -
Retrieve rows associated with a shard key (which is based on at least part of your primary keys) using either the
TableAPI.multiGet()
orTableAPI.multiGetIterator()
methods. -
Retrieve table rows that share a shard key, or an index key, using the
TableAPI.tableIterator()
method. -
Retrieve and process records from each shard in parallel using a single key as the retrieval criteria. Use one of the
TableAPI.tableIterator()
orTableAPI.tableKeysIterator()
methods that provide parallel scans. -
Retrieve and process records from each shard in parallel using a set of keys as the retrieval criteria. Use one of the
TableAPI.tableIterator()
orTableAPI.tableKeysIterator()
methods that provide bulk retrievals.
Each of these are described in the following sections.