-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve arrow-buffer documentation #9020
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
| offset: usize, | ||
| /// Length in bits (not bytes) | ||
| len: usize, |
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.
Worth renaming the fields themselves to bit_offset and bit_length for further clarity?
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 I think this is a good idea -- I will do so as a follow on PR
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.
Co-authored-by: Jeffrey Vo <[email protected]>
Co-authored-by: Jeffrey Vo <[email protected]>
# Which issue does this PR close? - Follow on to #9020 # Rationale for this change @Jefffrey suggested renaming these fields would help make it even more clear that the offset and lengths in `BooleanBuffer` are in terms of bits (not bytes) # What changes are included in this PR? Update field names and improve some more comments # Are these changes tested? # Are there any user-facing changes? No, this is internal field name and documentation changes only I did consider deprecating `BooleanBuffer::len` and renaming it to `BooleanBuffer::bit_len` and similarly for offset, but that seems overly aggressive for downstream consumers (they have to make changes for no obvious benefit 🤔 )
Which issue does this PR close?
Rationale for this change
As I study this code, I want to encode my learnings for both my future self and future readers of this code
What changes are included in this PR?
Add documentation on the structure of the arrow buffer crate as well as details on how BooleanBuffer works
Are these changes tested?
CI
Are there any user-facing changes?
Just docs, no functional changes