A compressor that uses the Snappy compression library.

Note
This compressor requires the snappy gem (v0.0.10 or later for JRuby support).
Note
No need to instantiate this class manually, use compression: :snappy option when calling Cassandra.cluster and one will be created automatically for you.

Inherits

Methods

self.

new

(min_size = 64)

Returns a new instance of Snappy

Parameters:
Name Type Details
min_size Integer (defaults to: 64) (64) Don’t compress frames smaller than this size (see #compress?).

algorithm

Returns 'snappy'

Returns:
Type Details
String 'snappy'

compress?

(str)

Returns will return false for frames smaller than the min_size given to the constructor.

Returns:
Type Details
(true or false) will return false for frames smaller than the min_size given to the constructor.
See Also:

compress

(str)

decompress

(str)