Skip to content

ORC-615: Refactor decompression streams into common base class - #500

Merged
wgtmac merged 3 commits into
apache:masterfrom
luksan47:ORC-615
Mar 31, 2020
Merged

wgtmac merged 3 commits into
apache:masterfrom
luksan47:ORC-615

Conversation

@luksan47

Copy link
Copy Markdown
Contributor

This commit does not intend to change anything in the current
behaviour, its only purpose is to reduce the huge amount of code
duplication in Compression.cc by refactoring the common functionality
of ZlibDecompressionStream and BlockDecompressionStream under a
common base class.

Tests:

  • Run orc-tests successfully.

This commit does not intend to change anything in the current
behaviour its only purpose is to reduce the huge amount of code
duplication in Compression.cc by refactoring the common functionality
of ZlibDecompressionStream and BlockDecompressionStream under a
common base class.

Tests:
 - Run orc-tests successfully.
Comment thread c++/src/Compression.cc
class BlockDecompressionStream: public DecompressionStream {
public:
BlockDecompressionStream(std::unique_ptr<SeekableInputStream> inStream,
size_t blockSize,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This argument is called blockSize here, but bufferSize in the definition

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed to blockSize, I think it's more meaningful for BlockDecompressionStream.

Comment thread c++/src/Compression.cc Resolved
Comment thread c++/src/Compression.cc Resolved

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please resolve the travis CI build break.

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 LGTM

@wgtmac
wgtmac merged commit 7654764 into apache:master Mar 31, 2020
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.

3 participants