Class HHXORErasureEncodingStep

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

@Private public class HHXORErasureEncodingStep extends HHErasureCodingStep
Hitchhiker-XOR Erasure encoding step, a wrapper of all the necessary information to perform an encoding step involved in the whole process of encoding a block group.
  • Constructor Details

    • HHXORErasureEncodingStep

      public HHXORErasureEncodingStep(ECBlock[] inputBlocks, ECBlock[] outputBlocks, RawErasureEncoder rsRawEncoder, RawErasureEncoder xorRawEncoder)
      The constructor with all the necessary info.
      Parameters:
      inputBlocks - inputBlocks.
      outputBlocks - outputBlocks.
      rsRawEncoder - underlying RS encoder for hitchhiker encoding
      xorRawEncoder - underlying XOR encoder for hitchhiker encoding
  • 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.