This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Return a filter that only accepts the first @p n cells in a row.
*
* Notice that cells might be repeated, such as when interleaving the results
* of multiple filters via the Union() function (aka Interleaved in the
* proto). Furthermore, notice that this is the cells within a row, if there
* are multiple column families and columns, the cells are returned ordered
* by first column family, and then by column qualifier, and then by
* timestamp.
*
* 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
* 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
* families may appear in different orders in different rows.
* - Within a column family, the cells are ordered by column name, where
* column names are sorted lexicographically.
* - Within a column, the cells appear in descending order by timestamp.
*
* TODO(#84) - document what is the effect of n <= 0
*/
static Filter CellsRowLimit(std::int32_t n) {
Expand All
@@ -215,17 +218,17 @@ class Filter {
/**
* Return a filter that skips the first @p n cells in a row.
*
* Notice that cells might be repeated, such as when interleaving the results
* of multiple filters via the Union() function (aka Interleaved in the
* proto). Furthermore, notice that this is the cells within a row, if there
* are multiple column families and columns, the cells are returned ordered
* by:
* - The column family internal ID, which is not necessarily the
* lexicographical order of the column family names.
* - The column names, lexicographically.
* - Timestamp in reverse order.
*
* 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
* 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
* families may appear in different orders in different rows.
* - Within a column family, the cells are ordered by column name, where
* column names are sorted lexicographically.
* - Within a column, the cells appear in descending order by timestamp.
*
* TODO(#84) - document what is the effect of n <= 0
*/
static Filter CellsRowOffset(std::int32_t n) {
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Document the order of cells within a row. #146
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
Uh oh!
There was an error while loading. Please reload this page.
Document the order of cells within a row. #146
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing