Class: Avro::DataFile::SnappyCodec
- Inherits:
-
Object
- Object
- Avro::DataFile::SnappyCodec
- Defined in:
- lib/avro/data_file.rb
Instance Method Summary collapse
Instance Method Details
#codec_name ⇒ Object
337 |
# File 'lib/avro/data_file.rb', line 337 def codec_name; 'snappy'; end |
#compress(data) ⇒ Object
344 345 346 347 |
# File 'lib/avro/data_file.rb', line 344 def compress(data) load_snappy! Snappy.deflate(data) end |
#decompress(data) ⇒ Object
339 340 341 342 |
# File 'lib/avro/data_file.rb', line 339 def decompress(data) load_snappy! Snappy.inflate(data) end |