Class: Fluent::Plugin::AzureStorageGen2Output::GzipCompressor
- Inherits:
-
Compressor
- Object
- Compressor
- Fluent::Plugin::AzureStorageGen2Output::GzipCompressor
show all
- Defined in:
- lib/fluent/plugin/out_azurestorage_gen2.rb
Instance Attribute Summary
Attributes inherited from Compressor
#buffer_type, #log
Instance Method Summary
collapse
Methods inherited from Compressor
#configure, #initialize
Instance Method Details
#compress(chunk, tmp) ⇒ Object
573
574
575
576
577
578
579
|
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 573
def compress(chunk, tmp)
w = Zlib::GzipWriter.new(tmp)
chunk.write_to(w)
w.finish
ensure
w.finish rescue nil
end
|
#content_type ⇒ Object
569
570
571
|
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 569
def content_type
'application/x-gzip'.freeze
end
|
#ext ⇒ Object
565
566
567
|
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 565
def ext
'gz'.freeze
end
|