예제 #1
0
      @Override
      DefaultCodec getCodec(Configuration conf) {
        if (codec == null) {
          codec = new ReusableStreamGzipCodec();
          codec.setConf(new Configuration(conf));
        }

        return codec;
      }
예제 #2
0
 private GzipCodec buildCodec(Configuration conf) {
   GzipCodec gzcodec = new ReusableStreamGzipCodec();
   gzcodec.setConf(new Configuration(conf));
   return gzcodec;
 }