[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eReverseScanOption\u003c/code\u003e feature within the Google Cloud Bigtable C++ client library, which allows for reading rows in reverse lexicographic order of their keys.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, with options down to version 2.11.0 being listed.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eReverseScanOption\u003c/code\u003e does not change the content of the rows, only the order in which they are returned.\u003c/p\u003e\n"],["\u003cp\u003eWhen employing \u003ccode\u003eReverseScanOption\u003c/code\u003e, the row keys in a \u003ccode\u003ebigtable::RowRange\u003c/code\u003e must still be provided in lexicographic order.\u003c/p\u003e\n"]]],[],null,["# Struct ReverseScanOption (2.28.0)\n\nVersion 2.28.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/bigtable/latest/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.41.0](/cpp/docs/reference/bigtable/2.41.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.40.0](/cpp/docs/reference/bigtable/2.40.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.39.0](/cpp/docs/reference/bigtable/2.39.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.38.0](/cpp/docs/reference/bigtable/2.38.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.37.0](/cpp/docs/reference/bigtable/2.37.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.36.0](/cpp/docs/reference/bigtable/2.36.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.35.0](/cpp/docs/reference/bigtable/2.35.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.34.0](/cpp/docs/reference/bigtable/2.34.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.33.0](/cpp/docs/reference/bigtable/2.33.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.32.0](/cpp/docs/reference/bigtable/2.32.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.31.0](/cpp/docs/reference/bigtable/2.31.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.30.0](/cpp/docs/reference/bigtable/2.30.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.29.0](/cpp/docs/reference/bigtable/2.29.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.28.0](/cpp/docs/reference/bigtable/2.28.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.27.0](/cpp/docs/reference/bigtable/2.27.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.26.0](/cpp/docs/reference/bigtable/2.26.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.25.1](/cpp/docs/reference/bigtable/2.25.1/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.24.0](/cpp/docs/reference/bigtable/2.24.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.23.0](/cpp/docs/reference/bigtable/2.23.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.22.1](/cpp/docs/reference/bigtable/2.22.1/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.21.0](/cpp/docs/reference/bigtable/2.21.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.20.0](/cpp/docs/reference/bigtable/2.20.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.19.0](/cpp/docs/reference/bigtable/2.19.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.18.0](/cpp/docs/reference/bigtable/2.18.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.17.0](/cpp/docs/reference/bigtable/2.17.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.16.0](/cpp/docs/reference/bigtable/2.16.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.15.1](/cpp/docs/reference/bigtable/2.15.1/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.14.0](/cpp/docs/reference/bigtable/2.14.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.13.0](/cpp/docs/reference/bigtable/2.13.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.12.0](/cpp/docs/reference/bigtable/2.12.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption)\n- [2.11.0](/cpp/docs/reference/bigtable/2.11.0/structgoogle_1_1cloud_1_1bigtable_1_1ReverseScanOption) \nRead rows in reverse order. \nThe rows will be streamed in reverse lexicographic order of the keys. This is particularly useful to get the last N records before a key.\n\nThis option does not affect the contents of the rows, just the order that the rows are returned.\n**Note:** When using this option, the order of row keys in a [`bigtable::RowRange`](/cpp/docs/reference/bigtable/2.28.0/classgoogle_1_1cloud_1_1bigtable_1_1RowRange) does not change. The row keys still must be supplied in lexicographic order. \n\n namespace cbt = ::google::cloud::bigtable;\n using ::google::cloud::Options;\n using ::google::cloud::StatusOr;\n [](cbt::Table table) {\n // Read and print the rows.\n auto reader = table.ReadRows(\n cbt::RowRange::RightOpen(\"phone#5c10102\", \"phone#5c10103\"), 3,\n cbt::Filter::PassAllFilter(),\n Options{}.set\u003ccbt::ReverseScanOption\u003e(true));\n for (StatusOr\u003ccbt::Row\u003e& row : reader) {\n if (!row) throw std::move(row).status();\n PrintRow(*row);\n }\n }\n\n###### See Also\n\n\u003chttps://cloud.google.com/bigtable/docs/reads#reverse-scan\u003e\n\nType Aliases\n------------\n\n### Type\n\n**Alias Of** : `bool`"]]