Class HHXORErasureDecodingStep

java.lang.Object
org.apache.hadoop.io.erasurecode.coder.HHErasureCodingStep
org.apache.hadoop.io.erasurecode.coder.HHXORErasureDecodingStep
All Implemented Interfaces:
ErasureCodingStep

@Private public class HHXORErasureDecodingStep extends HHErasureCodingStep
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 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 array
      outputBlocks - outputBlocks.
      rawDecoder - underlying RS decoder for hitchhiker decoding
      rawEncoder - underlying XOR encoder for hitchhiker decoding
  • Method Details

    • performCoding

      public void performCoding(ECChunk[] inputChunks, ECChunk[] outputChunks) throws IOException
      Description copied from interface: ErasureCodingStep
      Perform 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.