Class HHXORErasureDecodingStep
java.lang.Object
org.apache.hadoop.io.erasurecode.coder.HHErasureCodingStep
org.apache.hadoop.io.erasurecode.coder.HHXORErasureDecodingStep
- All Implemented Interfaces:
ErasureCodingStep
Hitchhiker-XOR Erasure decoding step, a wrapper of all the necessary
information to perform a decoding step involved in the whole process of
decoding a block group.
-
Constructor Summary
ConstructorsConstructorDescriptionHHXORErasureDecodingStep(ECBlock[] inputBlocks, int[] erasedIndexes, ECBlock[] outputBlocks, RawErasureDecoder rawDecoder, RawErasureEncoder rawEncoder) The constructor with all the necessary info. -
Method Summary
Modifier and TypeMethodDescriptionvoidperformCoding(ECChunk[] inputChunks, ECChunk[] outputChunks) Perform encoding or decoding given the input chunks, and generated results will be written to the output chunks.Methods inherited from class org.apache.hadoop.io.erasurecode.coder.HHErasureCodingStep
finish, getInputBlocks, getOutputBlocks, getSubPacketSize
-
Constructor Details
-
HHXORErasureDecodingStep
public HHXORErasureDecodingStep(ECBlock[] inputBlocks, int[] erasedIndexes, ECBlock[] outputBlocks, RawErasureDecoder rawDecoder, RawErasureEncoder rawEncoder) The constructor with all the necessary info.- Parameters:
inputBlocks- inputBlocks.erasedIndexes- the indexes of erased blocks in inputBlocks arrayoutputBlocks- outputBlocks.rawDecoder- underlying RS decoder for hitchhiker decodingrawEncoder- underlying XOR encoder for hitchhiker decoding
-
-
Method Details
-
performCoding
Description copied from interface:ErasureCodingStepPerform encoding or decoding given the input chunks, and generated results will be written to the output chunks.- Parameters:
inputChunks- inputChunks.outputChunks- outputChunks.- Throws:
IOException- raised on errors performing I/O.
-