Package org.apache.hadoop.hbase.io.hfile
Class HFilePreadReader
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileReaderImpl
org.apache.hadoop.hbase.io.hfile.HFilePreadReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.conf.Configurable
,HFile.CachingBlockReader
,HFile.Reader
Implementation of
HFile.Reader
to deal with pread.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderImpl
HFileReaderImpl.BlockIndexNotLoadedException, HFileReaderImpl.EncodedScanner, HFileReaderImpl.HFileScannerImpl, HFileReaderImpl.NotSeekedException
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final int
Fields inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderImpl
cacheConf, context, dataBlockEncoder, dataBlockIndexReader, fileInfo, fsBlockReader, hfileContext, KEY_VALUE_LEN_SIZE, MAX_MINOR_VERSION, metaBlockIndexReader, MIN_MINOR_VERSION, MINOR_VERSION_NO_CHECKSUM, MINOR_VERSION_WITH_CHECKSUM, MINOR_VERSION_WITH_FAKED_KEY, name, path, PBUF_TRAILER_MINOR_VERSION, trailer
-
Constructor Summary
ConstructorDescriptionHFilePreadReader
(ReaderContext context, HFileInfo fileInfo, CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean evictOnClose) Close method with optional evictOnCloseprivate static String
getPathOffsetEndStr
(org.apache.hadoop.fs.Path path, long offset, long end) private static String
getRegionName
(org.apache.hadoop.fs.Path path) Methods inherited from class org.apache.hadoop.hbase.io.hfile.HFileReaderImpl
close, getCacheConf, getComparator, getCompressionAlgorithm, getConf, getContext, getDataBlockEncoding, getDataBlockIndexReader, getDeleteBloomFilterMetadata, getEffectiveEncodingInCache, getEntries, getFileContext, getFirstKey, getFirstRowKey, getGeneralBloomFilterMetadata, getHFileInfo, getLastKey, getLastRowKey, getMajorVersion, getMetaBlock, getMetaBlockIndexReader, getName, getPath, getScanner, getScanner, getTrailer, getUncachedBlockReader, hasMVCCInfo, indexSize, isFileInfoLoaded, isPrimaryReplicaReader, length, midKey, prefetchComplete, prefetchStarted, readBlock, readBlock, setConf, setDataBlockEncoder, setDataBlockIndexReader, setMetaBlockIndexReader, toString, unbufferStream
-
Field Details
-
LOG
-
WAIT_TIME_FOR_CACHE_INITIALIZATION
- See Also:
-
-
Constructor Details
-
HFilePreadReader
public HFilePreadReader(ReaderContext context, HFileInfo fileInfo, CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
getRegionName
-
getPathOffsetEndStr
-
close
Description copied from interface:HFile.Reader
Close method with optional evictOnClose- Throws:
IOException
-