use of org.apache.hadoop.io.erasurecode.ECBlock in project hadoop by apache.
the class HHXORErasureEncoder method prepareEncodingStep.
@Override
protected ErasureCodingStep prepareEncodingStep(final ECBlockGroup blockGroup) {
RawErasureEncoder rsRawEncoderTmp = checkCreateRSRawEncoder();
RawErasureEncoder xorRawEncoderTmp = checkCreateXorRawEncoder();
ECBlock[] inputBlocks = getInputBlocks(blockGroup);
return new HHXORErasureEncodingStep(inputBlocks, getOutputBlocks(blockGroup), rsRawEncoderTmp, xorRawEncoderTmp);
}
use of org.apache.hadoop.io.erasurecode.ECBlock in project hadoop by apache.
the class RSErasureEncoder method prepareEncodingStep.
@Override
protected ErasureCodingStep prepareEncodingStep(final ECBlockGroup blockGroup) {
RawErasureEncoder rawEncoder = checkCreateRSRawEncoder();
ECBlock[] inputBlocks = getInputBlocks(blockGroup);
return new ErasureEncodingStep(inputBlocks, getOutputBlocks(blockGroup), rawEncoder);
}
use of org.apache.hadoop.io.erasurecode.ECBlock in project hadoop by apache.
the class XORErasureEncoder method prepareEncodingStep.
@Override
protected ErasureCodingStep prepareEncodingStep(final ECBlockGroup blockGroup) {
RawErasureEncoder rawEncoder = CodecUtil.createRawEncoder(getConf(), ErasureCodeConstants.XOR_CODEC_NAME, getOptions());
ECBlock[] inputBlocks = getInputBlocks(blockGroup);
return new ErasureEncodingStep(inputBlocks, getOutputBlocks(blockGroup), rawEncoder);
}
Aggregations