Class RSLegacyRawEncoder

java.lang.Object
org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder
org.apache.hadoop.io.erasurecode.rawcoder.RSLegacyRawEncoder

@Private public class RSLegacyRawEncoder extends RawErasureEncoder
A raw erasure encoder in RS code scheme in pure Java in case native one isn't available in some environment. Please always use native implementations when possible.
  • Constructor Details

  • Method Details

    • doEncode

      protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState encodingState)
      Description copied from class: RawErasureEncoder
      Perform the real encoding work using direct ByteBuffer.
      Specified by:
      doEncode in class RawErasureEncoder
      Parameters:
      encodingState - the encoding state.
    • doEncode

      protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayEncodingState encodingState)
      Description copied from class: RawErasureEncoder
      Perform the real encoding work using bytes array, supporting offsets and lengths.
      Specified by:
      doEncode in class RawErasureEncoder
      Parameters:
      encodingState - the encoding state