Package org.apache.hadoop.hbase.io.hfile
Class TestHFileBlockHeaderCorruption.Corrupter
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileBlockHeaderCorruption.Corrupter
- Enclosing class:
- TestHFileBlockHeaderCorruption
Enables writing and rewriting portions of the file backing an
HFileBlock
.-
Field Summary
Modifier and TypeFieldDescriptionprivate final TestHFileBlockHeaderCorruption.HFileBlockChannelPosition
private final ByteBuffer
-
Constructor Summary
ConstructorDescriptionCorrupter
(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ByteBuffer
readHeaderData
(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) void
restore()
void
write
(int offset, ByteBuffer src)
-
Field Details
-
channelAndPosition
-
originalHeader
-
-
Constructor Details
-
Corrupter
public Corrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException - Throws:
IOException
-
-
Method Details
-
readHeaderData
private static ByteBuffer readHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException - Throws:
IOException
-
write
- Throws:
IOException
-
restore
- Throws:
IOException
-