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