本文整理汇总了Java中org.apache.hadoop.io.erasurecode.coder.ErasureCoder类的典型用法代码示例。如果您正苦于以下问题:Java ErasureCoder类的具体用法?Java ErasureCoder怎么用?Java ErasureCoder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ErasureCoder类属于org.apache.hadoop.io.erasurecode.coder包,在下文中一共展示了ErasureCoder类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testGoodCodec
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@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());
}
示例2: createEncoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createEncoder() {
return new XORErasureEncoder(getSchema());
}
示例3: createDecoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createDecoder() {
return new XORErasureDecoder(getSchema());
}
示例4: createEncoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createEncoder() {
return new RSErasureEncoder(getSchema());
}
示例5: createDecoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createDecoder() {
return new RSErasureDecoder(getSchema());
}
示例6: createEncoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createEncoder() {
return new HHXORErasureEncoder(getSchema());
}
示例7: createDecoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
@Override
public ErasureCoder createDecoder() {
return new HHXORErasureDecoder(getSchema());
}
示例8: createEncoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
/**
* Create Erasure Encoder
* @return erasure encoder
*/
public ErasureCoder createEncoder();
示例9: createDecoder
import org.apache.hadoop.io.erasurecode.coder.ErasureCoder; //导入依赖的package包/类
/**
* Create Erasure Decoder
* @return erasure decoder
*/
public ErasureCoder createDecoder();