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

Zstd streaming and Hadoop Codec #152

Merged
merged 7 commits into from
Mar 3, 2023
Merged

Zstd streaming and Hadoop Codec #152

merged 7 commits into from
Mar 3, 2023

Conversation

dain
Copy link
Member

@dain dain commented Aug 27, 2022

Resolve #112

@dain dain requested a review from martint August 27, 2022 17:34
@dain dain force-pushed the zstd-streaming branch 3 times, most recently from 2decb38 to e6c2f37 Compare August 28, 2022 18:50
@bondolo
Copy link

bondolo commented Aug 28, 2022

This appears to resolve #112

@hlship
Copy link

hlship commented Oct 12, 2022

I'd love to see this merged and released; we're holding off on evaluating this library until the streaming API is available.

throws IOException
{
XxHash64 hash = new XxHash64(seed);
byte[] buffer = new byte[8192];
Copy link
Member

Choose a reason for hiding this comment

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

Why 8k?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@dain dain left a comment

Choose a reason for hiding this comment

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

I rewrote the decompressor into a standalone, fully encapsulated, class, ZstdIncrementalFrameDecompressor

throws IOException
{
XxHash64 hash = new XxHash64(seed);
byte[] buffer = new byte[8192];
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

These commits look good:

  • Add streaming XxHash64
  • Rename parameter to be more descriptive
  • Support unknown input size in ZSTD CompressionParameters
  • Add ZstdInputStream
  • Add window size and block size to CompressionParameters

@dain dain merged commit de6cfbc into airlift:master Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming compression/decompression for Zstd
4 participants