-
Notifications
You must be signed in to change notification settings - Fork 433
Implement bigtable::RowSet #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
What's |
|
A typo. Fixed. |
|
Can we have a function that prunes out row keys less than or equal to a string? I plan to use it like so: DanielMahu@c887afd |
|
We do not have such a function yet. |
DanielMahu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few non-critical comments, otherwise LGTM
bigtable/client/row_set.h
Outdated
| namespace bigtable { | ||
| inline namespace BIGTABLE_CLIENT_NS { | ||
| /** | ||
| * Represent (possibly non-continuous) set of row keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
- Represent a (possibly non-continuous) set of row keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
bigtable/client/row_set.h
Outdated
| } | ||
|
|
||
| /// Add @p row_key to the set. | ||
| void Append(std::string row_key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Append(std::string) and Append(char const*) are both made redundant by Append(absl::string_view), any reason to keep them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, you cannot move from absl::string_view into a std::string so you must always copy. The two overloads allow you to eliminate copies when possible. If you think I am optimizing too early, happy to remove. Also reordered the functions to explain why.
| } | ||
|
|
||
| /// Add @p row_key to the set. | ||
| void Append(char const* row_key) { Append(absl::string_view(row_key)); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can also be removed together with Append(std::string).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
bigtable/client/row_set.cc
Outdated
|
|
||
| namespace bigtable { | ||
| inline namespace BIGTABLE_CLIENT_NS { | ||
| namespace btproto = ::google::bigtable::v2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
|
If @DanielMahu (or anybody else) thinks that the overloads are premature optimization I am happy to send a second PR to remove them. |
This fixes #31. Implement a wrapper for
::google::bigtable::v2::RowSet.