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 SummaryFieldsModifier and TypeFieldDescriptionprivate final TestHFileBlockHeaderCorruption.HFileBlockChannelPositionprivate final ByteBuffer
- 
Constructor SummaryConstructorsConstructorDescriptionCorrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static ByteBufferreadHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) voidrestore()voidwrite(int offset, ByteBuffer src) 
- 
Field Details- 
channelAndPosition
- 
originalHeader
 
- 
- 
Constructor Details- 
Corrupterpublic Corrupter(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException - Throws:
- IOException
 
 
- 
- 
Method Details- 
readHeaderDataprivate static ByteBuffer readHeaderData(TestHFileBlockHeaderCorruption.HFileBlockChannelPosition channelAndPosition) throws IOException - Throws:
- IOException
 
- 
write- Throws:
- IOException
 
- 
restore- Throws:
- IOException
 
 
-