Class: Fluent::Plugin::S3Output::TextCompressor

Inherits:
Compressor
  • Object
show all
Defined in:
lib/fluent/plugin/out_s3.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::S3Output::Compressor

Instance Method Details

#compress(chunk, tmp) ⇒ Object



627
628
629
# File 'lib/fluent/plugin/out_s3.rb', line 627

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

#content_typeObject



623
624
625
# File 'lib/fluent/plugin/out_s3.rb', line 623

def content_type
  'text/plain'.freeze
end

#extObject



619
620
621
# File 'lib/fluent/plugin/out_s3.rb', line 619

def ext
  'txt'.freeze
end