Class XORErasureDecoder
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.io.erasurecode.coder.ErasureDecoder
org.apache.hadoop.io.erasurecode.coder.XORErasureDecoder
- All Implemented Interfaces:
Configurable,ErasureCoder
Xor erasure decoder that decodes a block group.
It implements
ErasureCoder.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ECBlock[]getOutputBlocks(ECBlockGroup blockGroup) Which blocks were erased ?protected ErasureCodingStepprepareDecodingStep(ECBlockGroup blockGroup) Perform decoding against a block blockGroup.Methods inherited from class org.apache.hadoop.io.erasurecode.coder.ErasureDecoder
calculateCoding, getErasedIndexes, getInputBlocks, getNumDataUnits, getNumErasedBlocks, getNumErasedBlocks, getNumParityUnits, getOptions, 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
-
XORErasureDecoder
-
-
Method Details
-
prepareDecodingStep
Description copied from class:ErasureDecoderPerform decoding against a block blockGroup.- Specified by:
prepareDecodingStepin classErasureDecoder- Parameters:
blockGroup- blockGroup.- Returns:
- decoding step for caller to do the real work
-
getOutputBlocks
Which blocks were erased ? For XOR it's simple we only allow and return one erased block, either data or parity.- Overrides:
getOutputBlocksin classErasureDecoder- Parameters:
blockGroup- blockGroup.- Returns:
- output blocks to recover
-