Class: Fluent::Plugin::AzureStorageGen2Output::TextCompressor

Inherits:
Compressor
  • Object
show all
Defined in:
lib/fluent/plugin/out_azurestorage_gen2.rb

Direct Known Subclasses

JsonCompressor

Instance Attribute Summary

Attributes inherited from Compressor

#buffer_type, #log

Instance Method Summary collapse

Methods inherited from Compressor

#configure, #initialize

Constructor Details

This class inherits a constructor from Fluent::Plugin::AzureStorageGen2Output::Compressor

Instance Method Details

#compress(chunk, tmp) ⇒ Object



716
717
718
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 716

def compress(chunk, tmp)
  chunk.write_to(tmp)
end

#content_typeObject



712
713
714
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 712

def content_type
  'text/plain'.freeze
end

#extObject



708
709
710
# File 'lib/fluent/plugin/out_azurestorage_gen2.rb', line 708

def ext
  'txt'.freeze
end