Search in sources :

Example 6 with ECBlock

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);
}
Also used : RawErasureEncoder(org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder) ECBlock(org.apache.hadoop.io.erasurecode.ECBlock)

Example 7 with ECBlock

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);
}
Also used : RawErasureEncoder(org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder) ECBlock(org.apache.hadoop.io.erasurecode.ECBlock)

Example 8 with ECBlock

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);
}
Also used : RawErasureEncoder(org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder) ECBlock(org.apache.hadoop.io.erasurecode.ECBlock)

Aggregations

ECBlock (org.apache.hadoop.io.erasurecode.ECBlock)8 RawErasureEncoder (org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder)5 RawErasureDecoder (org.apache.hadoop.io.erasurecode.rawcoder.RawErasureDecoder)4 DummyRawDecoder (org.apache.hadoop.io.erasurecode.rawcoder.DummyRawDecoder)1 DummyRawEncoder (org.apache.hadoop.io.erasurecode.rawcoder.DummyRawEncoder)1