/** * Return the appropriate type of the bzip2 compressor. * * @param conf configuration * @return the appropriate type of the bzip2 compressor. */ public static Class<? extends Compressor> getBzip2CompressorType(Configuration conf) { return isNativeBzip2Loaded(conf) ? Bzip2Compressor.class : BZip2DummyCompressor.class; }
/** * Return the appropriate implementation of the bzip2 compressor. * * @param conf configuration * @return the appropriate implementation of the bzip2 compressor. */ public static Compressor getBzip2Compressor(Configuration conf) { return isNativeBzip2Loaded(conf)? new Bzip2Compressor(conf) : new BZip2DummyCompressor(); }
/** * This functionality is currently not supported. * * @throws java.lang.UnsupportedOperationException * Throws UnsupportedOperationException */ public Class<? extends org.apache.hadoop.io.compress.Compressor> getCompressorType() { return BZip2DummyCompressor.class; }
/** * This functionality is currently not supported. * * @throws java.lang.UnsupportedOperationException * Throws UnsupportedOperationException */ public Compressor createCompressor() { return new BZip2DummyCompressor(); }