Class DummyRawEncoder

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

@Private public class DummyRawEncoder extends RawErasureEncoder
A dummy raw encoder that does no real computation. Instead, it just returns zero bytes. This encoder can be used to isolate the performance issue to HDFS side logic instead of codec, and is intended for test only.
  • Constructor Details

  • Method Details

    • 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
    • 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.