Class RSLegacyRawEncoder
java.lang.Object
org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder
org.apache.hadoop.io.erasurecode.rawcoder.RSLegacyRawEncoder
A raw erasure encoder in RS code scheme in pure Java in case native one
isn't available in some environment. Please always use native implementations
when possible.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayEncodingState encodingState) Perform the real encoding work using bytes array, supporting offsets and lengths.protected voiddoEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState encodingState) Perform the real encoding work using direct ByteBuffer.Methods inherited from class org.apache.hadoop.io.erasurecode.rawcoder.RawErasureEncoder
allowChangeInputs, allowVerboseDump, encode, encode, encode, getNumAllUnits, getNumDataUnits, getNumParityUnits, preferDirectBuffer, release
-
Constructor Details
-
RSLegacyRawEncoder
-
-
Method Details
-
doEncode
protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteBufferEncodingState encodingState) Description copied from class:RawErasureEncoderPerform the real encoding work using direct ByteBuffer.- Specified by:
doEncodein classRawErasureEncoder- Parameters:
encodingState- the encoding state.
-
doEncode
protected void doEncode(org.apache.hadoop.io.erasurecode.rawcoder.ByteArrayEncodingState encodingState) Description copied from class:RawErasureEncoderPerform the real encoding work using bytes array, supporting offsets and lengths.- Specified by:
doEncodein classRawErasureEncoder- Parameters:
encodingState- the encoding state
-