DummyRawDecoder, NativeRSRawDecoder, NativeXORRawDecoder, RSLegacyRawDecoder, RSRawDecoder, XORRawDecoder@Private
public abstract class RawErasureDecoder
extends java.lang.Object
| Constructor | Description |
|---|---|
RawErasureDecoder(ErasureCoderOptions coderOptions) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allowChangeInputs() |
Allow change into input buffers or not while perform encoding/decoding.
|
boolean |
allowVerboseDump() |
Allow to dump verbose info during encoding/decoding.
|
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.
|
void |
decode(ECChunk[] inputs,
int[] erasedIndexes,
ECChunk[] outputs) |
Decode with inputs and erasedIndexes, generates outputs.
|
protected abstract void |
doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayDecodingState decodingState) |
Perform the real decoding using bytes array, supporting offsets and
lengths.
|
protected abstract void |
doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferDecodingState decodingState) |
Perform the real decoding using Direct ByteBuffer.
|
protected int |
getNumAllUnits() |
|
int |
getNumDataUnits() |
|
int |
getNumParityUnits() |
|
boolean |
preferDirectBuffer() |
Tell if direct buffer is preferred or not.
|
void |
release() |
Should be called when release this coder.
|
public RawErasureDecoder(ErasureCoderOptions coderOptions)
public void decode(java.nio.ByteBuffer[] inputs,
int[] erasedIndexes,
java.nio.ByteBuffer[] outputs)
throws java.io.IOException
inputs - 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.protected abstract void doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferDecodingState decodingState)
throws java.io.IOException
decodingState - the decoding statejava.io.IOException - raised on errors performing I/O.public void decode(byte[][] inputs,
int[] erasedIndexes,
byte[][] outputs)
throws java.io.IOException
inputs - 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 abstract void doDecode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayDecodingState decodingState)
throws java.io.IOException
decodingState - the decoding statejava.io.IOException - if the decoder is closed.public void decode(ECChunk[] inputs, int[] erasedIndexes, ECChunk[] outputs) throws java.io.IOException
inputs - 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 closedpublic int getNumDataUnits()
public int getNumParityUnits()
protected int getNumAllUnits()
public boolean preferDirectBuffer()
public boolean allowChangeInputs()
public boolean allowVerboseDump()
public void release()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.