/** * Return the appropriate type of the bzip2 decompressor. * * @param conf configuration * @return the appropriate type of the bzip2 decompressor. */ public static Class<? extends Decompressor> getBzip2DecompressorType(Configuration conf) { return isNativeBzip2Loaded(conf) ? Bzip2Decompressor.class : BZip2DummyDecompressor.class; }
/** * Return the appropriate implementation of the bzip2 decompressor. * * @param conf configuration * @return the appropriate implementation of the bzip2 decompressor. */ public static Decompressor getBzip2Decompressor(Configuration conf) { return isNativeBzip2Loaded(conf) ? new Bzip2Decompressor() : new BZip2DummyDecompressor(); }
/** * This functionality is currently not supported. * * @throws java.lang.UnsupportedOperationException * Throws UnsupportedOperationException */ public Class<? extends org.apache.hadoop.io.compress.Decompressor> getDecompressorType() { return BZip2DummyDecompressor.class; }
/** * This functionality is currently not supported. * * @throws java.lang.UnsupportedOperationException * Throws UnsupportedOperationException */ public Decompressor createDecompressor() { return new BZip2DummyDecompressor(); }