-
Notifications
You must be signed in to change notification settings - Fork 433
Document the order of cells within a row. #146
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
Such as it is (the order is not guaranteed for column families). This fixes googleapis#82.
bigtable/client/filters.h
Outdated
| * by: | ||
| * - The column family internal ID, which is not necessarily the | ||
| * lexicographical order of the column family names. Also, the ID of each | ||
| * column family may change on each row. |
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'm not quite sure how to parse this. Is there a way to rephrase? Overall the description seems accurate, though.
Even though these are only comment changes I am not skipping the CI build because they affect Doxygen.
|
PTAL. |
| * filter apples to the cells within a row, if there are multiple column | ||
| * families and/or columns in a row the order is: | ||
| * - All the cells for a column family appear together, but there is no | ||
| * guarantee on the order of the column families. Furthermore, column |
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.
Removing the "internal ID" reference is an improvement. It is best to avoid referring to internal mechanics that the user can't see.
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.
Certainly.
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column | ||
| * families and/or columns in a row the order is: | ||
| * - All the cells for a column family appear together, but there is no |
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.
Have you checked the rendering of this in Doxygen output? Doxygen supports Markdown, but most Markdown parsers I've seen require adding a blank line before a bulleted list; otherwise, it doesn't render properly.
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.
Yes, see below.
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.
LGTM, thanks for checking.
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column | ||
| * families and/or columns in a row the order is: | ||
| * - All the cells for a column family appear together, but there is no |
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.
Same comment about rendering as above.
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 did, it works. Look at the attached file:
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.
Perfect, thanks!
|
PTAL. |
bigtable/client/filters.h
Outdated
| * - All the cells for a column family appear together, but there is no | ||
| * guarantee on the order of the column families. Furthermore, column | ||
| * families may appear in different orders in different rows. | ||
| * - Within a column family the cells are ordered by column name, column names |
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.
- Within a column family, the cells are ordered by column name, where column names are sorted lexicographically.
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/filters.h
Outdated
| * families may appear in different orders in different rows. | ||
| * - Within a column family the cells are ordered by column name, column names | ||
| * are compared lexicographically. | ||
| * - With a column, the cells appear in descending order by timestamp. |
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.
s/With/Within/
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/filters.h
Outdated
| * families may appear in different orders in different rows. | ||
| * - Within a column family the cells are ordered by column name, column names | ||
| * are compared lexicographically. | ||
| * - With a column, the cells appear in descending order by timestamp. |
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.
s/With/Within/
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/filters.h
Outdated
| * TODO(#82) - check the documentation around ordering of columns. | ||
| * Note that cells might be repeated, such as when interleaving the results | ||
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column |
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.
s/row, if/row; if/
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/filters.h
Outdated
| * Note that cells might be repeated, such as when interleaving the results | ||
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column | ||
| * families and/or columns in a row the order is: |
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.
s/row the/row, the/
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/filters.h
Outdated
| * - All the cells for a column family appear together, but there is no | ||
| * guarantee on the order of the column families. Furthermore, column | ||
| * families may appear in different orders in different rows. | ||
| * - Within a column family the cells are ordered by column name, column names |
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.
- Within a column family, the cells are ordered by column name, where column names are sorted lexicographically.
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.
Thanks!
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/filters.h
Outdated
| * TODO(#82) - check the documentation around ordering of columns. | ||
| * Note that cells might be repeated, such as when interleaving the results | ||
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column |
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.
s/row, if/row; if/
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, this is identical to the previous comment, so I just copied it.
bigtable/client/filters.h
Outdated
| * Note that cells might be repeated, such as when interleaving the results | ||
| * of multiple filters via the `Interleave()` function. Furthermore, this | ||
| * filter apples to the cells within a row, if there are multiple column | ||
| * families and/or columns in a row the order is: |
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.
s/row the/row, the/
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.
|
PTAL. |
mbrukman
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.
LGTM
Such as it is (the order is not guaranteed for column families).
This fixes #82.