Sha256: efdfd5a65164d7d241dd58009b2e6c8294b0c5693c21cffd1c31d1996c984d06
Contents?: true
Size: 425 Bytes
Versions: 7
Compression:
Stored size: 425 Bytes
Contents
module Fluent class WebHDFSOutput < Fluent::TimeSlicedOutput class Bzip2Compressor < Compressor WebHDFSOutput.register_compressor('bzip2', self) def initialize(options = {}) require "bzip2/ffi" end def ext ".bz2" end def compress(chunk, tmp) Bzip2::FFI::Writer.open(tmp) do |writer| chunk.write_to(writer) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems