iconara / cql-rb

Cassandra CQL 3 binary protocol driver for Ruby
106 stars 31 forks source link

LZ4 support #109

Closed iconara closed 10 years ago

iconara commented 10 years ago

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.