Package org.apache.hadoop.hbase.io.hfile
Class HFileStreamReader
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileReaderImpl
org.apache.hadoop.hbase.io.hfile.HFileStreamReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.conf.Configurable
,HFile.CachingBlockReader
,HFile.Reader
Implementation of
HFile.Reader
to deal with stream read do not perform any prefetch
operations (HFilePreadReader will do this).-
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
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
ConstructorDescriptionHFileStreamReader
(ReaderContext context, HFileInfo fileInfo, CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean evictOnClose) Close method with optional evictOnCloseMethods 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
-
Constructor Details
-
HFileStreamReader
public HFileStreamReader(ReaderContext context, HFileInfo fileInfo, CacheConfig cacheConf, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
close
Description copied from interface:HFile.Reader
Close method with optional evictOnClose- Throws:
IOException
-