Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Apr 24, 2022

This copies an abstract class, ByteBufferInputStream, and its two implementations, SingleBufferInputStream and MultiBufferInputStream from Parquet. This is to support the in-memory streams that are proposed for tests (#4534) and for adding caching to FileIO (#4518).

This also copies the tests and updates the LICENSE file.

@github-actions github-actions bot added the core label Apr 24, 2022
@rdblue rdblue force-pushed the add-byte-buffer-streams branch 2 times, most recently from 6347c26 to 1fdf6cc Compare April 24, 2022 17:44
@rdblue rdblue force-pushed the add-byte-buffer-streams branch from 17929bd to 24161f3 Compare April 24, 2022 18:00
@rdblue rdblue requested a review from danielcweeks April 24, 2022 22:02
@rdblue
Copy link
Contributor Author

rdblue commented Apr 28, 2022

Thanks @danielcweeks!

@rdblue rdblue merged commit 129c9ec into apache:master Apr 28, 2022
}

public void seek(long newPosition) throws IOException {
if (newPosition > length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

might want a check for a -ve position here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants