Class RSRawEncoder

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

@Private public class RSRawEncoder 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. This new Java coder is about 5X faster than the one originated from HDFS-RAID, and also compatible with the native/ISA-L coder.
  • 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