Class XORErasureDecoder

All Implemented Interfaces:
Configurable, ErasureCoder

@Private public class XORErasureDecoder extends ErasureDecoder
Xor erasure decoder that decodes a block group. It implements ErasureCoder.
  • Constructor Details

  • Method Details

    • prepareDecodingStep

      protected ErasureCodingStep prepareDecodingStep(ECBlockGroup blockGroup)
      Description copied from class: ErasureDecoder
      Perform decoding against a block blockGroup.
      Specified by:
      prepareDecodingStep in class ErasureDecoder
      Parameters:
      blockGroup - blockGroup.
      Returns:
      decoding step for caller to do the real work
    • getOutputBlocks

      protected ECBlock[] getOutputBlocks(ECBlockGroup blockGroup)
      Which blocks were erased ? For XOR it's simple we only allow and return one erased block, either data or parity.
      Overrides:
      getOutputBlocks in class ErasureDecoder
      Parameters:
      blockGroup - blockGroup.
      Returns:
      output blocks to recover