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.FSDataInputStreamWrapper istream,
                     long fileSize,
                     org.apache.hadoop.fs.FileSystem fs,
                     org.apache.hadoop.fs.Path path,
                     org.apache.hadoop.hbase.io.hfile.HFileContext meta)  | 
| 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 int | 
readAtOffset(org.apache.hadoop.fs.FSDataInputStream istream,
            byte[] dest,
            int destOffset,
            int size,
            boolean peekIntoNextBlock,
            long fileOffset,
            boolean pread)  | 
org.apache.hadoop.hbase.io.hfile.HFileBlock | 
readBlockData(long arg0,
             long arg1,
             boolean arg2,
             boolean arg3)  | 
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)  | 
void | 
setDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder arg0)  | 
void | 
setIncludesMemStoreTS(boolean arg0)  | 
String | 
toString()  | 
void | 
unbufferStream()  | 
boolean corruptDataStream
protected final int hdrSize
public CorruptedFSReaderImpl(org.apache.hadoop.hbase.io.FSDataInputStreamWrapper istream, long fileSize, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.hfile.HFileContext meta) throws IOException
IOExceptionprotected org.apache.hadoop.hbase.io.hfile.HFileBlock readBlockDataInternal(org.apache.hadoop.fs.FSDataInputStream is, long offset, long onDiskSizeWithHeaderL, boolean pread, boolean verifyChecksum, boolean updateMetrics) throws IOException
IOExceptionprotected int readAtOffset(org.apache.hadoop.fs.FSDataInputStream istream, byte[] dest, int destOffset, int size, boolean peekIntoNextBlock, long fileOffset, boolean pread) throws IOException
IOExceptionpublic 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) throws IOException
IOExceptionpublic void setIncludesMemStoreTS(boolean arg0)
public void setDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder arg0)
public org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext getBlockDecodingContext()
public org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext getDefaultBlockDecodingContext()
public void closeStreams() throws IOException
IOExceptionpublic void unbufferStream()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.