Skip to content

Commit ae18706

Browse files
Google APIscopybara-github
authored andcommitted
feat: add experimental reverse scan for public preview
PiperOrigin-RevId: 543539118
1 parent b3d6404 commit ae18706

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

google/bigtable/v2/bigtable.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ message ReadRowsRequest {
271271

272272
// The view into RequestStats, as described above.
273273
RequestStatsView request_stats_view = 6;
274+
275+
// Experimental API - Please note that this API is currently experimental
276+
// and can change in the future.
277+
//
278+
// Return rows in lexiographical descending order of the row keys. The row
279+
// contents will not be affected by this flag.
280+
// Example result set: [
281+
// {key: "k2", "f:col1": "v1", "f:col2": "v1"}, {key: "k1", "f:col1": "v2",
282+
// "f:col2": "v2"} ].
283+
bool reversed = 7;
274284
}
275285

276286
// Response message for Bigtable.ReadRows.

google/bigtable/v2/feature_flags.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ option ruby_package = "Google::Cloud::Bigtable::V2";
3333
// This is an internal implementation detail and should not be used by endusers
3434
// directly.
3535
message FeatureFlags {
36+
// Notify the server that the client supports reverse scans. The server will
37+
// reject ReadRowsRequests with the reverse bit set when this is absent.
38+
bool reverse_scans = 1;
39+
3640
// Notify the server that the client enables batch write flow control by
3741
// requesting RateLimitInfo from MutateRowsResponse.
3842
bool mutate_rows_rate_limit = 3;

0 commit comments

Comments
 (0)