class Snappy
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 callingCassandra.cluster
and one will be created automatically for you.
Inherits
Methods
self.new(min_size = 64)
Returns a new instance of Snappy
algorithm
Returns 'snappy'
compress?(str)
Returns will return false for frames smaller than the
min_size
given to the constructor.
compress(str)
decompress(str)