java.io.Closeable, java.lang.AutoCloseableStripedBlockChecksumCompositeCrcReconstructor, StripedBlockChecksumMd5CrcReconstructor@Private
public abstract class StripedBlockChecksumReconstructor
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.slf4j.Logger |
LOG |
| Modifier | Constructor | Description |
|---|---|---|
protected |
StripedBlockChecksumReconstructor(ErasureCodingWorker worker,
StripedReconstructionInfo stripedReconInfo,
org.apache.hadoop.io.DataOutputBuffer checksumWriter,
long requestedBlockLength) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
long |
getBytesRead() |
|
long |
getBytesWritten() |
|
org.apache.hadoop.util.DataChecksum |
getChecksum() |
|
long |
getChecksumDataLen() |
|
protected org.apache.hadoop.io.DataOutputBuffer |
getChecksumWriter() |
|
abstract java.lang.Object |
getDigestObject() |
Should return a representation of a completed/reconstructed digest which
is suitable for debug printing.
|
ErasureCodingWorker |
getErasureCodingWorker() |
|
long |
getRemoteBytesRead() |
|
void |
incrBytesRead(boolean local,
long delta) |
|
void |
incrBytesWritten(long delta) |
|
protected void |
initDecoderIfNecessary() |
|
protected void |
initDecodingValidatorIfNecessary() |
|
protected static void |
markBuffers(java.nio.ByteBuffer[] buffers) |
|
void |
reconstruct() |
|
protected static void |
resetBuffers(java.nio.ByteBuffer[] buffers) |
protected StripedBlockChecksumReconstructor(ErasureCodingWorker worker, StripedReconstructionInfo stripedReconInfo, org.apache.hadoop.io.DataOutputBuffer checksumWriter, long requestedBlockLength) throws java.io.IOException
java.io.IOExceptionpublic void reconstruct()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.Object getDigestObject()
protected org.apache.hadoop.io.DataOutputBuffer getChecksumWriter()
public long getChecksumDataLen()
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionpublic void incrBytesRead(boolean local,
long delta)
public void incrBytesWritten(long delta)
public long getBytesRead()
public long getRemoteBytesRead()
public long getBytesWritten()
protected void initDecoderIfNecessary()
protected void initDecodingValidatorIfNecessary()
public org.apache.hadoop.util.DataChecksum getChecksum()
public ErasureCodingWorker getErasureCodingWorker()
protected static void markBuffers(java.nio.ByteBuffer[] buffers)
protected static void resetBuffers(java.nio.ByteBuffer[] buffers)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.