本文整理汇总了Java中org.apache.hadoop.io.erasurecode.ErasureCodeNative类的典型用法代码示例。如果您正苦于以下问题:Java ErasureCodeNative类的具体用法?Java ErasureCodeNative怎么用?Java ErasureCodeNative使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ErasureCodeNative类属于org.apache.hadoop.io.erasurecode包,在下文中一共展示了ErasureCodeNative类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setup
import org.apache.hadoop.io.erasurecode.ErasureCodeNative; //导入依赖的package包/类
@Before
public void setup() {
Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());
this.encoderClass = NativeRSRawEncoder.class;
this.decoderClass = RSRawDecoder.class;
setAllowDump(true);
}
示例2: setup
import org.apache.hadoop.io.erasurecode.ErasureCodeNative; //导入依赖的package包/类
@Before
public void setup() {
Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());
this.encoderClass = NativeRSRawEncoder.class;
this.decoderClass = NativeRSRawDecoder.class;
setAllowDump(true);
}
示例3: testISALCoder
import org.apache.hadoop.io.erasurecode.ErasureCodeNative; //导入依赖的package包/类
@Test
public void testISALCoder() throws Exception {
Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());
// ISA-L coder
RawErasureCoderBenchmark.performBench("encode",
RawErasureCoderBenchmark.CODER.ISAL_CODER, 5, 300, 64);
RawErasureCoderBenchmark.performBench("decode",
RawErasureCoderBenchmark.CODER.ISAL_CODER, 6, 200, 128);
}
示例4: setup
import org.apache.hadoop.io.erasurecode.ErasureCodeNative; //导入依赖的package包/类
@Before
public void setup() {
Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());
this.encoderClass = RSRawEncoder.class;
this.decoderClass = NativeRSRawDecoder.class;
setAllowDump(true);
}
示例5: testEC
import org.apache.hadoop.io.erasurecode.ErasureCodeNative; //导入依赖的package包/类
@Test
public void testEC(){
ErasureCodeNative.checkNativeCodeLoaded();
}