Skip to content
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

Allow creating unbuffered streamreader #4165

Merged
merged 3 commits into from
May 5, 2023

Conversation

ming08108
Copy link
Contributor

@ming08108 ming08108 commented May 4, 2023

Which issue does this PR close?

Closes #93

Rationale for this change

Allows users to create a StreamReader without buffering. This is useful if you want to customize the buffer size of the BufReader manually or if you want reads to be unbuffered.

What changes are included in this PR?

Adds a new try_new_unbuffered() function to StreamReader.

Are there any user-facing changes?

Yes. get_ref()/get_mut() may now return a BufReader instead of an R.

@github-actions github-actions bot added the arrow Changes to the arrow crate label May 4, 2023
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor nits.

I think this is still a breaking change as it alters the type signatures

arrow-ipc/src/reader.rs Outdated Show resolved Hide resolved
arrow-ipc/src/reader.rs Show resolved Hide resolved
@tustvold tustvold added the api-change Changes to the arrow API label May 4, 2023
@tustvold tustvold merged commit a2bd269 into apache:master May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Rust][Parquet] Allow reader buffer size to be specified
2 participants