Class: Avro::DataFile::ZstandardCodec
- Inherits:
-
Object
- Object
- Avro::DataFile::ZstandardCodec
- Defined in:
- lib/avro/data_file.rb
Instance Method Summary collapse
Instance Method Details
#codec_name ⇒ Object
377 |
# File 'lib/avro/data_file.rb', line 377 def codec_name; 'zstandard'; end |
#compress(data) ⇒ Object
384 385 386 387 |
# File 'lib/avro/data_file.rb', line 384 def compress(data) load_zstandard! Zstd.compress(data) end |
#decompress(data) ⇒ Object
379 380 381 382 |
# File 'lib/avro/data_file.rb', line 379 def decompress(data) load_zstandard! Zstd.decompress(data) end |