本文整理汇总了Java中org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor类的典型用法代码示例。如果您正苦于以下问题:Java BZip2DummyDecompressor类的具体用法?Java BZip2DummyDecompressor怎么用?Java BZip2DummyDecompressor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BZip2DummyDecompressor类属于org.apache.hadoop.io.compress.bzip2包,在下文中一共展示了BZip2DummyDecompressor类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBzip2DecompressorType
import org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor; //导入依赖的package包/类
/**
* 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;
}
示例2: getBzip2Decompressor
import org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor; //导入依赖的package包/类
/**
* 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();
}
示例3: getDecompressorType
import org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor; //导入依赖的package包/类
/**
* 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;
}
示例4: createDecompressor
import org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor; //导入依赖的package包/类
/**
* This functionality is currently not supported.
*
* @throws java.lang.UnsupportedOperationException
* Throws UnsupportedOperationException
*/
public Decompressor createDecompressor() {
return new BZip2DummyDecompressor();
}