![Forrest logo](/images/logo.png)
cbt:tldr:3ba9f
cbt: Read a specific range of rows and print only returned row keys in the current project.
$ cbt read ${table_name} start=${start_row_key} end=${end_row_key} keys-only=true
try on your machine
This command is written in the style of the command-line tool called cbt (Cloud Bigtable). It is used to interact with Google Cloud Bigtable, a fully managed, NoSQL database service by Google.
Explanation of the command:
cbt read
: This is the command to read data from a Bigtable table.${table_name}
: This is a placeholder for the name of the Bigtable table from which you want to read data. The actual table name needs to be provided in place of${table_name}
.start=${start_row_key}
: This parameter specifies the start row key from where you want to read data. The actual start row key value needs to be provided in place of${start_row_key}
.end=${end_row_key}
: This parameter specifies the end row key until where you want to read data. The actual end row key value needs to be provided in place of${end_row_key}
.keys-only=true
: This parameter specifies that only the row keys should be returned in the result, rather than the actual row data. It is set totrue
in this command.
Once all the required values are provided and the command is executed, it will read the row keys within the specified range from the specified Bigtable table, returning only the row keys.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.