Class DummyRawEncoder
java.lang.Object
org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder
org.apache.hadoop.io.erasurecode.rawcoder.DummyRawEncoder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayEncodingState encodingState) Perform the real encoding work using bytes array, supporting offsets and lengths.protected voiddoEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState encodingState) Perform the real encoding work using direct ByteBuffer.Methods inherited from class org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder
allowChangeInputs, allowVerboseDump, encode, encode, encode, getNumAllUnits, getNumDataUnits, getNumParityUnits, preferDirectBuffer, release
-
Constructor Details
-
DummyRawEncoder
-
-
Method Details
-
doEncode
protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayEncodingState encodingState) Description copied from class:RawErasureEncoderPerform the real encoding work using bytes array, supporting offsets and lengths.- Specified by:
doEncodein classRawErasureEncoder- Parameters:
encodingState- the encoding state
-
doEncode
protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState encodingState) Description copied from class:RawErasureEncoderPerform the real encoding work using direct ByteBuffer.- Specified by:
doEncodein classRawErasureEncoder- Parameters:
encodingState- the encoding state.
-