Class HHErasureCodingStep
java.lang.Object
org.apache.hadoop.io.erasurecode.coder.HHErasureCodingStep
- All Implemented Interfaces:
ErasureCodingStep
- Direct Known Subclasses:
HHXORErasureDecodingStep,HHXORErasureEncodingStep
Abstract class for Hitchhiker common facilities shared by
HHXORErasureEncodingStepand HHXORErasureDecodingStep.
It implements ErasureCodingStep.-
Constructor Summary
ConstructorsConstructorDescriptionHHErasureCodingStep(ECBlock[] inputBlocks, ECBlock[] outputBlocks) Constructor given input blocks and output blocks. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Notify erasure coder that all the chunks of input blocks are processed so the coder can be able to update internal states, considering next step.ECBlock[]Input blocks of readable data involved in this step, may be data blocks or parity blocks.ECBlock[]Output blocks of writable buffers involved in this step, may be data blocks or parity blocks.protected intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.io.erasurecode.coder.ErasureCodingStep
performCoding
-
Constructor Details
-
HHErasureCodingStep
Constructor given input blocks and output blocks.- Parameters:
inputBlocks- inputBlocks.outputBlocks- outputBlocks.
-
-
Method Details
-
getSubPacketSize
protected int getSubPacketSize() -
getInputBlocks
Description copied from interface:ErasureCodingStepInput blocks of readable data involved in this step, may be data blocks or parity blocks.- Specified by:
getInputBlocksin interfaceErasureCodingStep- Returns:
- input blocks
-
getOutputBlocks
Description copied from interface:ErasureCodingStepOutput blocks of writable buffers involved in this step, may be data blocks or parity blocks.- Specified by:
getOutputBlocksin interfaceErasureCodingStep- Returns:
- output blocks
-
finish
public void finish()Description copied from interface:ErasureCodingStepNotify erasure coder that all the chunks of input blocks are processed so the coder can be able to update internal states, considering next step.- Specified by:
finishin interfaceErasureCodingStep
-