GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — feat: add value_bitmask_filter to the read API by parthea · Pull Request #16898 · googleapis/google-cloud-python Conversation
|
| last_generated_commit: a6cbf809c4c165e618ee23a059442af90a80a0f5 |
(py392) partheniou@partheniou-vm-3:~/git/googleapis$ git diff
diff --git a/google/bigtable/v2/data.proto b/google/bigtable/v2/data.proto
index 8320a0c22f..af354b05a2 100644
--- a/google/bigtable/v2/data.proto
+++ b/google/bigtable/v2/data.proto
@@ -255,6 +255,15 @@ message ValueRange {
}
}
+// Restricts the output to cells whose values match the given bitmask.
+message ValueBitmask {
+ // Required. Mask applied to the value.
+ // Evaluated as: `(value & mask) == mask`
+ // The mask length must exactly match the value length, otherwise the cell is
+ // not considered a match.
+ bytes mask = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
// Takes a row as input and produces an alternate view of the row based on
// specified rules. For example, a RowFilter might trim down a row to include
// just the cells from columns matching a given regular expression, or might
@@ -514,6 +523,12 @@ message RowFilter {
// will be applied to separate copies of the input. This may be relaxed in
// the future.
string apply_label_transformer = 19;
+
+ // Matches only cells with values that satisfy the condition `(value & mask)
+ // == mask`.
+ // The mask length must exactly match the value length, otherwise the cell
+ // is not considered a match.
+ ValueBitmask value_bitmask_filter = 20;
}
}
Clone this repo. Checkout commit 6cb5af5227e09e99ee12bb3542374f683b75d4b4 which is the last commit where generation was run:
https://github.com/googleapis/google-cloud-python/commits/main/packages/google-cloud-bigtable
Run legacylibrarian generate --api-source=<path/to/clone/of/googleapis> --library=google-cloud-bigtable to regenerate the library using the local version of googleapis
Revert changes to .librarian/state.yaml
Closes #16884
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This pull request introduces the ValueBitmask message type to the Bigtable V2 API, enabling bitmask-based cell value filtering. The new ValueBitmask class is defined in data.py and integrated into the RowFilter message as a value_bitmask_filter field within the filter oneof. Corresponding exports and imports have been updated across the package to support this new functionality. I have no feedback to provide.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.