Class: Fluent::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::S3Output::Compressor

Instance Method Details

#compress(chunk, tmp) ⇒ Object



222
223
224
225
# File 'lib/fluent/plugin/out_s3.rb', line 222

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

#content_typeObject



218
219
220
# File 'lib/fluent/plugin/out_s3.rb', line 218

def content_type
  'text/plain'.freeze
end

#extObject



214
215
216
# File 'lib/fluent/plugin/out_s3.rb', line 214

def ext
  'txt'.freeze
end