Class DummyErasureEncoder
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.io.erasurecode.coder.ErasureEncoder
org.apache.hadoop.io.erasurecode.coder.DummyErasureEncoder
- All Implemented Interfaces:
Configurable,ErasureCoder
Dummy erasure encoder does no real computation. Instead, it just returns
zero bytes. This decoder 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 ErasureCodingStepprepareEncodingStep(ECBlockGroup blockGroup) Perform encoding against a block group.Methods inherited from class org.apache.hadoop.io.erasurecode.coder.ErasureEncoder
calculateCoding, getInputBlocks, getNumDataUnits, getNumParityUnits, getOptions, getOutputBlocks, preferDirectBuffer, releaseMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Constructor Details
-
DummyErasureEncoder
-
-
Method Details
-
prepareEncodingStep
Description copied from class:ErasureEncoderPerform encoding against a block group.- Specified by:
prepareEncodingStepin classErasureEncoder- Parameters:
blockGroup- blockGroup.- Returns:
- encoding step for caller to do the real work
-