Search in sources :

Example 1 with DummyRawEncoder

use of org.apache.hadoop.io.erasurecode.rawcoder.DummyRawEncoder in project hadoop by apache.

the class DummyErasureEncoder method prepareEncodingStep.

@Override
protected ErasureCodingStep prepareEncodingStep(ECBlockGroup blockGroup) {
    RawErasureEncoder rawEncoder = new DummyRawEncoder(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) DummyRawEncoder(org.apache.hadoop.io.erasurecode.rawcoder.DummyRawEncoder)

Aggregations

ECBlock (org.apache.hadoop.io.erasurecode.ECBlock)1 DummyRawEncoder (org.apache.hadoop.io.erasurecode.rawcoder.DummyRawEncoder)1 RawErasureEncoder (org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder)1