@Private public class RSLegacyRawDecoder extends RawErasureDecoder
| Constructor | Description |
|---|---|
RSLegacyRawDecoder(ErasureCoderOptions coderOptions) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
decode(byte[][] inputs,
int[] erasedIndexes,
byte[][] outputs) |
Decode with inputs and erasedIndexes, generates outputs.
|
void |
decode(java.nio.ByteBuffer[] inputs,
int[] erasedIndexes,
java.nio.ByteBuffer[] outputs) |
Decode with inputs and erasedIndexes, generates outputs.
|
protected void |
doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayDecodingState decodingState) |
Perform the real decoding using bytes array, supporting offsets and
lengths.
|
protected void |
doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferDecodingState decodingState) |
Perform the real decoding using Direct ByteBuffer.
|
allowChangeInputs, allowVerboseDump, decode, getNumAllUnits, getNumDataUnits, getNumParityUnits, preferDirectBuffer, releasepublic RSLegacyRawDecoder(ErasureCoderOptions coderOptions)
public void decode(java.nio.ByteBuffer[] inputs,
int[] erasedIndexes,
java.nio.ByteBuffer[] outputs)
throws java.io.IOException
RawErasureDecoderdecode in class RawErasureDecoderinputs - input buffers to read data from. The buffers' remaining will
be 0 after decodingerasedIndexes - indexes of erased units in the inputs arrayoutputs - output buffers to put decoded data into according to
erasedIndexes, ready for read after the calljava.io.IOException - raised on errors performing I/O.public void decode(byte[][] inputs,
int[] erasedIndexes,
byte[][] outputs)
throws java.io.IOException
RawErasureDecoderdecode in class RawErasureDecoderinputs - input buffers to read data fromerasedIndexes - indexes of erased units in the inputs arrayoutputs - output buffers to put decoded data into according to
erasedIndexes, ready for read after the calljava.io.IOException - if the decoder is closed.protected void doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayDecodingState decodingState)
RawErasureDecoderdoDecode in class RawErasureDecoderdecodingState - the decoding stateprotected void doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferDecodingState decodingState)
RawErasureDecoderdoDecode in class RawErasureDecoderdecodingState - the decoding stateCopyright © 2008–2025 Apache Software Foundation. All rights reserved.