ConfigurableDummyErasureDecoder, DummyErasureEncoder, ErasureDecoder, ErasureEncoder, HHXORErasureDecoder, HHXORErasureEncoder, RSErasureDecoder, RSErasureEncoder, XORErasureDecoder, XORErasureEncoder@Private public interface ErasureCoder extends Configurable
ErasureCodingStep. ErasureCoder callers can use the
step to do the real work with retrieved input and output chunks.
Note, currently only one coding step is supported. Will support complex cases
of multiple coding steps.| Modifier and Type | Method | Description |
|---|---|---|
ErasureCodingStep |
calculateCoding(ECBlockGroup blockGroup) |
Calculate the encoding or decoding steps given a block blockGroup.
|
int |
getNumDataUnits() |
The number of data input units for the coding.
|
int |
getNumParityUnits() |
The number of parity output units for the coding.
|
ErasureCoderOptions |
getOptions() |
The options of erasure coder.
|
boolean |
preferDirectBuffer() |
Tell if direct or off-heap buffer is preferred or not.
|
void |
release() |
Release the resources if any.
|
getConf, setConfint getNumDataUnits()
int getNumParityUnits()
ErasureCoderOptions getOptions()
ErasureCodingStep calculateCoding(ECBlockGroup blockGroup)
blockGroup - the erasure coding block group containing all necessary
information for codec calculationboolean preferDirectBuffer()
void release()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.