Class RSErasureEncoder

All Implemented Interfaces:
Configurable, ErasureCoder

@Private public class RSErasureEncoder extends ErasureEncoder
Reed-Solomon erasure encoder that encodes a block group. It implements ErasureCoder.
  • Constructor Details

  • Method Details

    • prepareEncodingStep

      protected ErasureCodingStep prepareEncodingStep(ECBlockGroup blockGroup)
      Description copied from class: ErasureEncoder
      Perform encoding against a block group.
      Specified by:
      prepareEncodingStep in class ErasureEncoder
      Parameters:
      blockGroup - blockGroup.
      Returns:
      encoding step for caller to do the real work
    • release

      public void release()
      Description copied from interface: ErasureCoder
      Release the resources if any. Good chance to invoke RawErasureCoder#release.
      Specified by:
      release in interface ErasureCoder
      Overrides:
      release in class ErasureEncoder
    • preferDirectBuffer

      public boolean preferDirectBuffer()
      Description copied from interface: ErasureCoder
      Tell if direct or off-heap buffer is preferred or not. It's for callers to decide how to allocate coding chunk buffers, either on heap or off heap. It will return false by default.
      Specified by:
      preferDirectBuffer in interface ErasureCoder
      Overrides:
      preferDirectBuffer in class ErasureEncoder
      Returns:
      true if direct buffer is preferred for performance consideration, otherwise false.