Convenience wrapper of google.bigtable.v2.RowRange
Parameters
start_key (bytes) – (Optional) Start key of the row range. If left empty,
will be interpreted as the empty string.
end_key (bytes) – (Optional) End key of the row range. If left empty,
will be interpreted as the empty string and range will
be unbounded on the high end.
start_inclusive (bool) – (Optional) Whether the start_key should be
considered inclusive. The default is True (inclusive).
end_inclusive (bool) – (Optional) Whether the end_key should be
considered inclusive. The default is False (exclusive).
get_range_kwargs()
Convert row range object to dict which can be passed to
google.bigtable.v2.RowRange add method.
start_key (bytes) – (Optional) Start key of the row range. If left empty,
will be interpreted as the empty string.
end_key (bytes) – (Optional) End key of the row range. If left empty,
will be interpreted as the empty string and range will
be unbounded on the high end.
start_inclusive (bool) – (Optional) Whether the start_key should be
considered inclusive. The default is True (inclusive).
end_inclusive (bool) – (Optional) Whether the end_key should be
considered inclusive. The default is False (exclusive).
add_row_range_with_prefix(row_key_prefix)
Add row range to row_ranges list that start with the row_key_prefix from the row keys
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [2.32.0 (latest)](/python/docs/reference/bigtable/latest/row-set)\n- [2.31.0](/python/docs/reference/bigtable/2.31.0/row-set)\n- [2.30.1](/python/docs/reference/bigtable/2.30.1/row-set)\n- [2.29.0](/python/docs/reference/bigtable/2.29.0/row-set)\n- [2.28.1](/python/docs/reference/bigtable/2.28.1/row-set)\n- [2.26.0](/python/docs/reference/bigtable/2.26.0/row-set)\n- [2.25.0](/python/docs/reference/bigtable/2.25.0/row-set)\n- [2.24.0](/python/docs/reference/bigtable/2.24.0/row-set)\n- [2.23.1](/python/docs/reference/bigtable/2.23.1/row-set)\n- [2.22.0](/python/docs/reference/bigtable/2.22.0/row-set)\n- [2.21.0](/python/docs/reference/bigtable/2.21.0/row-set)\n- [2.20.0](/python/docs/reference/bigtable/2.20.0/row-set)\n- [2.19.0](/python/docs/reference/bigtable/2.19.0/row-set)\n- [2.18.1](/python/docs/reference/bigtable/2.18.1/row-set)\n- [2.17.0](/python/docs/reference/bigtable/2.17.0/row-set)\n- [2.16.0](/python/docs/reference/bigtable/2.16.0/row-set)\n- [2.15.0](/python/docs/reference/bigtable/2.15.0/row-set)\n- [2.14.1](/python/docs/reference/bigtable/2.14.1/row-set)\n- [2.13.2](/python/docs/reference/bigtable/2.13.2/row-set)\n- [2.12.0](/python/docs/reference/bigtable/2.12.0/row-set)\n- [2.11.3](/python/docs/reference/bigtable/2.11.3/row-set)\n- [2.10.1](/python/docs/reference/bigtable/2.10.1/row-set)\n- [2.9.0](/python/docs/reference/bigtable/2.9.0/row-set)\n- [2.8.1](/python/docs/reference/bigtable/2.8.1/row-set)\n- [2.7.1](/python/docs/reference/bigtable/2.7.1/row-set)\n- [2.6.0](/python/docs/reference/bigtable/2.6.0/row-set)\n- [2.5.2](/python/docs/reference/bigtable/2.5.2/row-set)\n- [2.4.0](/python/docs/reference/bigtable/2.4.0/row-set)\n- [2.3.3](/python/docs/reference/bigtable/2.3.3/row-set)\n- [2.2.0](/python/docs/reference/bigtable/2.2.0/row-set)\n- [2.1.0](/python/docs/reference/bigtable/2.1.0/row-set)\n- [2.0.0](/python/docs/reference/bigtable/2.0.0/row-set)\n- [1.7.3](/python/docs/reference/bigtable/1.7.3/row-set)\n- [1.6.1](/python/docs/reference/bigtable/1.6.1/row-set)\n- [1.5.1](/python/docs/reference/bigtable/1.5.1/row-set)\n- [1.4.0](/python/docs/reference/bigtable/1.4.0/row-set)\n- [1.3.0](/python/docs/reference/bigtable/1.3.0/row-set)\n- [1.2.1](/python/docs/reference/bigtable/1.2.1/row-set)\n- [1.1.0](/python/docs/reference/bigtable/1.1.0/row-set)\n- [1.0.0](/python/docs/reference/bigtable/1.0.0/row-set)\n- [0.34.0](/python/docs/reference/bigtable/0.34.0/row-set) \n\nRow Set\n=======\n\nUser-friendly container for Google Cloud Bigtable RowSet\n\n### *class* google.cloud.bigtable.row_set.RowRange(start_key=None, end_key=None, start_inclusive=True, end_inclusive=False)\n\nBases: [`object`](https://docs.python.org/3/library/functions.html#object)\n\nConvenience wrapper of google.bigtable.v2.RowRange\n\n- **Parameters**\n\n - **start_key** ([*bytes*](https://docs.python.org/3/library/stdtypes.html#bytes)) -- (Optional) Start key of the row range. If left empty,\n will be interpreted as the empty string.\n\n - **end_key** ([*bytes*](https://docs.python.org/3/library/stdtypes.html#bytes)) -- (Optional) End key of the row range. If left empty,\n will be interpreted as the empty string and range will\n be unbounded on the high end.\n\n - **start_inclusive** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) -- (Optional) Whether the `start_key` should be\n considered inclusive. The default is True (inclusive).\n\n - **end_inclusive** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) -- (Optional) Whether the `end_key` should be\n considered inclusive. The default is False (exclusive).\n\n#### get_range_kwargs()\n\nConvert row range object to dict which can be passed to\ngoogle.bigtable.v2.RowRange add method.\n\n### *class* google.cloud.bigtable.row_set.RowSet()\n\nBases: [`object`](https://docs.python.org/3/library/functions.html#object)\n\nConvenience wrapper of google.bigtable.v2.RowSet\n\nUseful for creating a set of row keys and row ranges, which can\nbe passed to read_rows method of class:.Table.read_rows.\n\n#### add_row_key(row_key)\n\nAdd row key to row_keys list.\n\nFor example: \n\n from google.cloud.bigtable import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html\n from google.cloud.bigtable.row_set import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html\n\n client = Client(admin=True)\n instance = https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html#google_cloud_bigtable_client_Client_instance(INSTANCE_ID)\n table = instance.table(TABLE_ID)\n\n row_set = RowSet()\n https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html#google_cloud_bigtable_row_set_RowSet_add_row_key(b\"row_key_5\")\n\n- **Parameters**\n\n **row_key** ([*bytes*](https://docs.python.org/3/library/stdtypes.html#bytes)) -- The key of a row to read\n\n#### add_row_range(row_range)\n\nAdd row_range to row_ranges list.\n\nFor example: \n\n from google.cloud.bigtable import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html\n from google.cloud.bigtable.row_set import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html\n from google.cloud.bigtable.row_set import RowRange\n\n client = Client(admin=True)\n instance = https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html#google_cloud_bigtable_client_Client_instance(INSTANCE_ID)\n table = instance.table(TABLE_ID)\n\n row_set = RowSet()\n https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html#google_cloud_bigtable_row_set_RowSet_add_row_range(RowRange(start_key=b\"row_key_3\", end_key=b\"row_key_7\"))\n\n- **Parameters**\n\n **row_range** (class:RowRange) -- The row range object having start and end key\n\n#### add_row_range_from_keys(start_key=None, end_key=None, start_inclusive=True, end_inclusive=False)\n\nAdd row range to row_ranges list from the row keys\n\nFor example: \n\n from google.cloud.bigtable import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html\n from google.cloud.bigtable.row_set import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html\n\n client = Client(admin=True)\n instance = https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html#google_cloud_bigtable_client_Client_instance(INSTANCE_ID)\n table = instance.table(TABLE_ID)\n\n row_set = RowSet()\n https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html#google_cloud_bigtable_row_set_RowSet_add_row_range_from_keys(start_key=b\"row_key_3\", end_key=b\"row_key_7\")\n\n- **Parameters**\n\n - **start_key** ([*bytes*](https://docs.python.org/3/library/stdtypes.html#bytes)) -- (Optional) Start key of the row range. If left empty,\n will be interpreted as the empty string.\n\n - **end_key** ([*bytes*](https://docs.python.org/3/library/stdtypes.html#bytes)) -- (Optional) End key of the row range. If left empty,\n will be interpreted as the empty string and range will\n be unbounded on the high end.\n\n - **start_inclusive** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) -- (Optional) Whether the `start_key` should be\n considered inclusive. The default is True (inclusive).\n\n - **end_inclusive** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) -- (Optional) Whether the `end_key` should be\n considered inclusive. The default is False (exclusive).\n\n#### add_row_range_with_prefix(row_key_prefix)\n\nAdd row range to row_ranges list that start with the row_key_prefix from the row keys\n\nFor example: \n\n from google.cloud.bigtable import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html\n from google.cloud.bigtable.row_set import https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html\n\n client = Client(admin=True)\n instance = https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.client.Client.html#google_cloud_bigtable_client_Client_instance(INSTANCE_ID)\n table = instance.table(TABLE_ID)\n\n row_set = RowSet()\n https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.html.https://cloud.google.com/python/docs/reference/bigtable/latest/google.cloud.bigtable.row_set.RowSet.html#google_cloud_bigtable_row_set_RowSet_add_row_range_with_prefix(\"row\")\n\n- **Parameters**\n\n **row_key_prefix** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) -- To retrieve all rows that start with this row key prefix.\n Prefix cannot be zero length."]]