public static interface HFile.Reader extends 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() |
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() |
DataInput |
getGeneralBloomFilterMetadata()
Retrieves general Bloom filter metadata as appropriate for each
HFile version. |
byte[] |
getLastKey() |
byte[] |
getLastRowKey() |
ByteBuffer |
getMetaBlock(String metaBlockName,
boolean cacheBlock) |
String |
getName()
Returns this reader's "name".
|
org.apache.hadoop.fs.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() |
Map<byte[],byte[]> |
loadFileInfo() |
byte[] |
midkey() |
void |
setPrimaryReplicaReader(boolean isPrimaryReplicaReader) |
void |
unbufferStream()
To close the stream's socket.
|
readBlock
String getName()
KeyValue.KVComparator getComparator()
HFileScanner getScanner(boolean cacheBlocks, boolean pread, boolean isCompaction)
ByteBuffer getMetaBlock(String metaBlockName, boolean cacheBlock) throws IOException
IOException
Map<byte[],byte[]> loadFileInfo() throws IOException
IOException
byte[] getLastKey()
byte[] midkey() throws IOException
IOException
long 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()
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()
void setPrimaryReplicaReader(boolean isPrimaryReplicaReader)
void unbufferStream()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.