Sha256: 52a20dd9050afee80cfc679946572824f2af51b4b6a077a3e300cb5348af9fb4
Contents?: true
Size: 403 Bytes
Versions: 6
Compression:
Stored size: 403 Bytes
Contents
module Fluent class WebHDFSOutput < Fluent::TimeSlicedOutput 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.close end end end end
Version data entries
6 entries across 6 versions & 1 rubygems