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

项目:hops    文件:TestHHXORErasureCodec.java   
@Test
public void testGoodCodec() {
  HHXORErasureCodec codec = new HHXORErasureCodec(schema);
  ErasureCoder encoder = codec.createEncoder();
  assertEquals(10, encoder.getNumDataUnits());
  assertEquals(4, encoder.getNumParityUnits());

  ErasureCoder decoder = codec.createDecoder();
  assertEquals(10, decoder.getNumDataUnits());
  assertEquals(4, decoder.getNumParityUnits());
}
项目:hadoop-oss    文件:XORErasureCodec.java   
@Override
public ErasureCoder createEncoder() {
  return new XORErasureEncoder(getSchema());
}
项目:hadoop-oss    文件:XORErasureCodec.java   
@Override
public ErasureCoder createDecoder() {
  return new XORErasureDecoder(getSchema());
}
项目:hadoop-oss    文件:RSErasureCodec.java   
@Override
public ErasureCoder createEncoder() {
  return new RSErasureEncoder(getSchema());
}
项目:hadoop-oss    文件:RSErasureCodec.java   
@Override
public ErasureCoder createDecoder() {
  return new RSErasureDecoder(getSchema());
}
项目:aliyun-oss-hadoop-fs    文件:XORErasureCodec.java   
@Override
public ErasureCoder createEncoder() {
  return new XORErasureEncoder(getSchema());
}
项目:aliyun-oss-hadoop-fs    文件:XORErasureCodec.java   
@Override
public ErasureCoder createDecoder() {
  return new XORErasureDecoder(getSchema());
}
项目:aliyun-oss-hadoop-fs    文件:RSErasureCodec.java   
@Override
public ErasureCoder createEncoder() {
  return new RSErasureEncoder(getSchema());
}
项目:aliyun-oss-hadoop-fs    文件:RSErasureCodec.java   
@Override
public ErasureCoder createDecoder() {
  return new RSErasureDecoder(getSchema());
}
项目:hops    文件:HHXORErasureCodec.java   
@Override
public ErasureCoder createEncoder() {
  return new HHXORErasureEncoder(getSchema());
}
项目:hops    文件:HHXORErasureCodec.java   
@Override
public ErasureCoder createDecoder() {
  return new HHXORErasureDecoder(getSchema());
}
项目:hadoop-oss    文件:ErasureCodec.java   
/**
 * Create Erasure Encoder
 * @return erasure encoder
 */
public ErasureCoder createEncoder();
项目:hadoop-oss    文件:ErasureCodec.java   
/**
 * Create Erasure Decoder
 * @return erasure decoder
 */
public ErasureCoder createDecoder();
项目:aliyun-oss-hadoop-fs    文件:ErasureCodec.java   
/**
 * Create Erasure Encoder
 * @return erasure encoder
 */
public ErasureCoder createEncoder();
项目:aliyun-oss-hadoop-fs    文件:ErasureCodec.java   
/**
 * Create Erasure Decoder
 * @return erasure decoder
 */
public ErasureCoder createDecoder();
项目:hops    文件:ErasureCodec.java   
/**
 * Create Erasure Encoder
 * @return erasure encoder
 */
public ErasureCoder createEncoder();
项目:hops    文件:ErasureCodec.java   
/**
 * Create Erasure Decoder
 * @return erasure decoder
 */
public ErasureCoder createDecoder();