public static interface HFile.Reader extends java.io.Closeable, HFile.CachingBlockReader
HFile.| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean evictOnClose)
Close method with optional evictOnClose
|
KeyValue.KVComparator |
getComparator() |
Compression.Algorithm |
getCompressionAlgorithm() |
DataBlockEncoding |
getDataBlockEncoding() |
HFileBlockIndex.BlockIndexReader |
getDataBlockIndexReader() |
java.io.DataInput |
getDeleteBloomFilterMetadata()
Retrieves delete family Bloom filter metadata as appropriate for each
HFile version. |
long |
getEntries() |
HFileContext |
getFileContext()
Return the file context of the HFile this reader belongs to
|
byte[] |
getFirstKey() |
byte[] |
getFirstRowKey() |
java.io.DataInput |
getGeneralBloomFilterMetadata()
Retrieves general Bloom filter metadata as appropriate for each
HFile version. |
byte[] |
getLastKey() |
byte[] |
getLastRowKey() |
java.nio.ByteBuffer |
getMetaBlock(java.lang.String metaBlockName,
boolean cacheBlock) |
java.lang.String |
getName()
Returns this reader's "name".
|
Path |
getPath() |
HFileScanner |
getScanner(boolean cacheBlocks,
boolean pread) |
HFileScanner |
getScanner(boolean cacheBlocks,
boolean pread,
boolean isCompaction) |
FixedFileTrailer |
getTrailer() |
boolean |
hasMVCCInfo() |
long |
indexSize() |
boolean |
isPrimaryReplicaReader() |
long |
length() |
java.util.Map<byte[],byte[]> |
loadFileInfo() |
byte[] |
midkey() |
void |
setPrimaryReplicaReader(boolean isPrimaryReplicaReader) |
void |
unbufferStream()
To close the stream's socket.
|
readBlockjava.lang.String getName()
KeyValue.KVComparator getComparator()
HFileScanner getScanner(boolean cacheBlocks, boolean pread, boolean isCompaction)
java.nio.ByteBuffer getMetaBlock(java.lang.String metaBlockName,
boolean cacheBlock)
throws java.io.IOException
java.io.IOExceptionjava.util.Map<byte[],byte[]> loadFileInfo()
throws java.io.IOException
java.io.IOExceptionbyte[] getLastKey()
byte[] midkey()
throws java.io.IOException
java.io.IOExceptionlong length()
long getEntries()
byte[] getFirstKey()
long indexSize()
byte[] getFirstRowKey()
byte[] getLastRowKey()
FixedFileTrailer getTrailer()
HFileBlockIndex.BlockIndexReader getDataBlockIndexReader()
HFileScanner getScanner(boolean cacheBlocks, boolean pread)
Compression.Algorithm getCompressionAlgorithm()
java.io.DataInput getGeneralBloomFilterMetadata()
throws java.io.IOException
HFile version.
Knows nothing about how that metadata is structured.java.io.IOExceptionjava.io.DataInput getDeleteBloomFilterMetadata()
throws java.io.IOException
HFile version.
Knows nothing about how that metadata is structured.java.io.IOExceptionPath getPath()
void close(boolean evictOnClose)
throws java.io.IOException
java.io.IOExceptionDataBlockEncoding getDataBlockEncoding()
boolean hasMVCCInfo()
HFileContext getFileContext()
boolean isPrimaryReplicaReader()
void setPrimaryReplicaReader(boolean isPrimaryReplicaReader)
void unbufferStream()