Sha256: 380080455633e2c15337d663cbe9a15cbf6b4bb8f7fe23e22936526ac18f80a3
Contents?: true
Size: 394 Bytes
Versions: 13
Compression:
Stored size: 394 Bytes
Contents
module Fluent::Plugin class WebHDFSOutput < Output class GzipCompressor < Compressor WebHDFSOutput.register_compressor('gzip', self) def initialize(options = {}) require "zlib" end def ext ".gz" end def compress(chunk, tmp) w = Zlib::GzipWriter.new(tmp) chunk.write_to(w) w.finish end end end end
Version data entries
13 entries across 13 versions & 1 rubygems