The purpose of this PR is to replace the DataBuffer with BlockBuffer. This way the orc compressor can start with a small initial size and grow automatically as needed.
Why are the changes needed?
This patch uses BlockBuffer to replace the DataBuffer of class CompressionStream in order to solve the issue.
How was this patch tested?
The UTs in TestBufferedOutputStream.cc and TestCompression.cc can cover this patch.
What changes were proposed in this pull request?
The purpose of this PR is to replace the DataBuffer with BlockBuffer. This way the orc compressor can start with a small initial size and grow automatically as needed.
Why are the changes needed?
This patch uses BlockBuffer to replace the DataBuffer of class CompressionStream in order to solve the issue.
How was this patch tested?
The UTs in TestBufferedOutputStream.cc and TestCompression.cc can cover this patch.