alamb commented on code in PR #9795:
URL: https://github.com/apache/arrow-rs/pull/9795#discussion_r3138999261
##########
parquet/src/encodings/levels.rs:
##########
@@ -46,31 +46,35 @@ impl LevelEncoder {
///
/// This does not require knowing the number of values
/// upfront, making it suitable for incremental encoding where levels are
fed in
- /// as they arrive via [`put`](Self::put).
+ /// as they arrive via [`put_with_observer`](Self::put_with_observer).
pub fn v2_streaming(max_level: i16) -> Self {
let bit_width = num_required_bits(max_level as u64);
LevelEncoder::RleV2(RleEncoder::new_from_buf(bit_width, Vec::new()))
}
- /// Put/encode levels vector into this level encoder.
- /// Returns number of encoded values that are less than or equal to length
of the
- /// input buffer.
+ /// Put/encode levels vector into this level encoder and call
Review Comment:
I actually tried this and got a clippy error that `put` was unused. I think
what is happening is that these methods, while `pub` are in a non `pub` module
and thus not part of the public API (confusingly)
This appears to be borne out with docs.rs as well:
https://docs.rs/arrow/latest/arrow/?search=LevelEncoder
<img width="1555" height="791" alt="Image"
src="https://github.com/user-attachments/assets/a20dd350-117d-418d-aab4-db610aca3dd3"
/>
So TLDR is I think there is no action required here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]