public static interface HFile.Reader extends Closeable, HFile.CachingBlockReader
HFile
.readBlock
String getName()
CellComparator getComparator()
HFileScanner getScanner(org.apache.hadoop.conf.Configuration conf, boolean cacheBlocks, boolean pread, boolean isCompaction)
HFileBlock getMetaBlock(String metaBlockName, boolean cacheBlock) throws IOException
IOException
Optional<Cell> getLastKey()
Optional<Cell> midKey() throws IOException
IOException
long length()
long getEntries()
Optional<Cell> getFirstKey()
long indexSize()
Optional<byte[]> getFirstRowKey()
Optional<byte[]> getLastRowKey()
FixedFileTrailer getTrailer()
void setDataBlockIndexReader(HFileBlockIndex.CellBasedKeyBlockIndexReader reader)
HFileBlockIndex.CellBasedKeyBlockIndexReader getDataBlockIndexReader()
void setMetaBlockIndexReader(HFileBlockIndex.ByteArrayKeyBlockIndexReader reader)
HFileBlockIndex.ByteArrayKeyBlockIndexReader getMetaBlockIndexReader()
HFileScanner getScanner(org.apache.hadoop.conf.Configuration conf, boolean cacheBlocks, boolean pread)
DataInput getGeneralBloomFilterMetadata() throws IOException
HFile
version. Knows
nothing about how that metadata is structured.IOException
DataInput getDeleteBloomFilterMetadata() throws IOException
HFile
version.
Knows nothing about how that metadata is structured.IOException
org.apache.hadoop.fs.Path getPath()
void close(boolean evictOnClose) throws IOException
IOException
DataBlockEncoding getDataBlockEncoding()
boolean hasMVCCInfo()
HFileContext getFileContext()
boolean isPrimaryReplicaReader()
DataBlockEncoding getEffectiveEncodingInCache(boolean isCompaction)
HFileBlock.FSReader getUncachedBlockReader()
boolean prefetchComplete()
void unbufferStream()
ReaderContext getContext()
HFileInfo getHFileInfo()
void setDataBlockEncoder(HFileDataBlockEncoder dataBlockEncoder)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.