@Override DefaultCodec getCodec(Configuration conf) { if (codec == null) { codec = new ReusableStreamGzipCodec(); codec.setConf(new Configuration(conf)); } return codec; }
private GzipCodec buildCodec(Configuration conf) { GzipCodec gzcodec = new ReusableStreamGzipCodec(); gzcodec.setConf(new Configuration(conf)); return gzcodec; }