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
FieldsModifier and TypeFieldDescriptionprivate final TestHFileBlockHeaderCorruption.HFileBlockChannelPositionprivate final ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionCorrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ByteBufferreadHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) voidrestore()voidwrite(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
-