public static class TestHFileBlockHeaderCorruption.Corrupter extends Object
HFileBlock
.Modifier and Type | Field and Description |
---|---|
private TestHFileBlockHeaderCorruption.HFileBlockChannelPosition |
channelAndPosition |
private ByteBuffer |
originalHeader |
Constructor and Description |
---|
Corrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) |
Modifier and Type | Method and Description |
---|---|
private static ByteBuffer |
readHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) |
void |
restore() |
void |
write(int offset,
ByteBuffer src) |
private final TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition
private final ByteBuffer originalHeader
public Corrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException
IOException
private static ByteBuffer readHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException
IOException
public void write(int offset, ByteBuffer src) throws IOException
IOException
public void restore() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.