Interface RawErasureCoderFactory
- All Known Implementing Classes:
DummyRawErasureCoderFactory,NativeRSRawErasureCoderFactory,NativeXORRawErasureCoderFactory,RSLegacyRawErasureCoderFactory,RSRawErasureCoderFactory,XORRawErasureCoderFactory
@Private
public interface RawErasureCoderFactory
Raw erasure coder factory that can be used to create raw encoder and decoder.
It helps in configuration since only one factory class is needed to be
configured.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDecoder(ErasureCoderOptions coderOptions) Create raw erasure decoder.createEncoder(ErasureCoderOptions coderOptions) Create raw erasure encoder.Get the name of its codec.Get the name of the coder.
-
Method Details
-
createEncoder
Create raw erasure encoder.- Parameters:
coderOptions- the options used to create the encoder- Returns:
- raw erasure encoder
-
createDecoder
Create raw erasure decoder.- Parameters:
coderOptions- the options used to create the encoder- Returns:
- raw erasure decoder
-
getCoderName
String getCoderName()Get the name of the coder.- Returns:
- coder name
-
getCodecName
String getCodecName()Get the name of its codec.- Returns:
- codec name
-