Java 类org.apache.hadoop.io.erasurecode.ErasureCodeNative 实例源码

项目:hops    文件:TestRSRawCoderInteroperable2.java   
@Before
public void setup() {
  Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());

  this.encoderClass = NativeRSRawEncoder.class;
  this.decoderClass = RSRawDecoder.class;
  setAllowDump(true);
}
项目:hops    文件:TestNativeRSRawCoder.java   
@Before
public void setup() {
  Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());
  this.encoderClass = NativeRSRawEncoder.class;
  this.decoderClass = NativeRSRawDecoder.class;
  setAllowDump(true);
}
项目:hops    文件:TestRawErasureCoderBenchmark.java   
@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);
}
项目:hops    文件:TestRSRawCoderInteroperable1.java   
@Before
public void setup() {
  Assume.assumeTrue(ErasureCodeNative.isNativeCodeLoaded());

  this.encoderClass = RSRawEncoder.class;
  this.decoderClass = NativeRSRawDecoder.class;
  setAllowDump(true);
}
项目:hops    文件:TestNativeErasureCodes.java   
@Test
public void testEC(){
       ErasureCodeNative.checkNativeCodeLoaded();
}