private static class TestChecksum.CorruptedFSReaderImpl extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
corruptDataStream
If set to true, corrupt reads using readAtOffset(...).
|
protected int |
hdrSize |
Constructor and Description |
---|
CorruptedFSReaderImpl(org.apache.hadoop.hbase.io.hfile.ReaderContext context,
org.apache.hadoop.hbase.io.hfile.HFileContext meta,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIterator |
blockRange(long arg0,
long arg1) |
void |
closeStreams() |
org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext |
getBlockDecodingContext() |
org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext |
getDefaultBlockDecodingContext() |
protected boolean |
readAtOffset(org.apache.hadoop.fs.FSDataInputStream istream,
org.apache.hadoop.hbase.nio.ByteBuff dest,
int size,
boolean peekIntoNextBlock,
long fileOffset,
boolean pread) |
org.apache.hadoop.hbase.io.hfile.HFileBlock |
readBlockData(long arg0,
long arg1,
boolean arg2,
boolean arg3,
boolean arg4) |
protected org.apache.hadoop.hbase.io.hfile.HFileBlock |
readBlockDataInternal(org.apache.hadoop.fs.FSDataInputStream is,
long offset,
long onDiskSizeWithHeaderL,
boolean pread,
boolean verifyChecksum,
boolean updateMetrics,
boolean useHeap) |
void |
setDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder arg0,
org.apache.hadoop.conf.Configuration arg1) |
void |
setIncludesMemStoreTS(boolean arg0) |
String |
toString() |
void |
unbufferStream() |
boolean corruptDataStream
protected final int hdrSize
public CorruptedFSReaderImpl(org.apache.hadoop.hbase.io.hfile.ReaderContext context, org.apache.hadoop.hbase.io.hfile.HFileContext meta, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected org.apache.hadoop.hbase.io.hfile.HFileBlock readBlockDataInternal(org.apache.hadoop.fs.FSDataInputStream is, long offset, long onDiskSizeWithHeaderL, boolean pread, boolean verifyChecksum, boolean updateMetrics, boolean useHeap) throws IOException
IOException
protected boolean readAtOffset(org.apache.hadoop.fs.FSDataInputStream istream, org.apache.hadoop.hbase.nio.ByteBuff dest, int size, boolean peekIntoNextBlock, long fileOffset, boolean pread) throws IOException
IOException
public org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockIterator blockRange(long arg0, long arg1)
public org.apache.hadoop.hbase.io.hfile.HFileBlock readBlockData(long arg0, long arg1, boolean arg2, boolean arg3, boolean arg4) throws IOException
IOException
public void setIncludesMemStoreTS(boolean arg0)
public void setDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder arg0, org.apache.hadoop.conf.Configuration arg1)
public org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext getBlockDecodingContext()
public org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext getDefaultBlockDecodingContext()
public void closeStreams() throws IOException
IOException
public void unbufferStream()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.