ErasureCodingStep@Private public class ErasureEncodingStep extends java.lang.Object implements ErasureCodingStep
| Constructor | Description |
|---|---|
ErasureEncodingStep(ECBlock[] inputBlocks,
ECBlock[] outputBlocks,
RawErasureEncoder rawEncoder) |
The constructor with all the necessary info.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
finish() |
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[] |
getInputBlocks() |
Input blocks of readable data involved in this step, may be data blocks
or parity blocks.
|
ECBlock[] |
getOutputBlocks() |
Output blocks of writable buffers involved in this step, may be data
blocks or parity blocks.
|
void |
performCoding(ECChunk[] inputChunks,
ECChunk[] outputChunks) |
Perform encoding or decoding given the input chunks, and generated results
will be written to the output chunks.
|
public ErasureEncodingStep(ECBlock[] inputBlocks, ECBlock[] outputBlocks, RawErasureEncoder rawEncoder)
inputBlocks - inputBlocks.outputBlocks - outputBlocks.rawEncoder - rawEncoder.public void performCoding(ECChunk[] inputChunks, ECChunk[] outputChunks) throws java.io.IOException
ErasureCodingStepperformCoding in interface ErasureCodingStepinputChunks - inputChunks.outputChunks - outputChunks.java.io.IOException - raised on errors performing I/O.public ECBlock[] getInputBlocks()
ErasureCodingStepgetInputBlocks in interface ErasureCodingSteppublic ECBlock[] getOutputBlocks()
ErasureCodingStepgetOutputBlocks in interface ErasureCodingSteppublic void finish()
ErasureCodingStepfinish in interface ErasureCodingStepCopyright © 2008–2025 Apache Software Foundation. All rights reserved.