Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

LZ4 support #109

Merged
merged 8 commits into from
Jun 21, 2014
Merged

LZ4 support #109

merged 8 commits into from
Jun 21, 2014

Conversation

iconara
Copy link
Owner

@iconara iconara commented May 22, 2014

Since komiya-atsushi/lz4-ruby#3 and komiya-atsushi/lz4-ruby#7 are now fixed, and v0.3.2 is out, cql-rb can finally get LZ4 support.

Turns out that Cassandra also uses a non-standard LZ4 format, the encoded data is prefixed with an int with the uncompressed size. Very convenient, but also completely undocumented as far as I can tell.

begin
require 'lz4-ruby'
rescue LoadError => e
raise LoadError, %[Snappy support requires the "lz4-ruby" gem: #{e.message}], e.backtrace

Choose a reason for hiding this comment

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

This should probably read LZ4 support... 😄

@iconara iconara merged commit 9b0cb3e into master Jun 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants