|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.metrics.SchemaConfigured
org.apache.hadoop.hbase.regionserver.StoreFile.Reader
public static class StoreFile.Reader
Reader for a StoreFile.
Field Summary | |
---|---|
protected StoreFile.BloomType |
bloomFilterType
|
protected BloomFilter |
deleteFamilyBloomFilter
|
protected BloomFilter |
generalBloomFilter
|
protected long |
sequenceID
|
protected TimeRangeTracker |
timeRangeTracker
|
Fields inherited from class org.apache.hadoop.hbase.regionserver.metrics.SchemaConfigured |
---|
SCHEMA_CONFIGURED_UNALIGNED_HEAP_SIZE |
Constructor Summary | |
---|---|
StoreFile.Reader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
CacheConfig cacheConf,
DataBlockEncoding preferredEncodingInCache)
|
|
StoreFile.Reader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
HFileLink hfileLink,
long size,
CacheConfig cacheConf,
DataBlockEncoding preferredEncodingInCache,
boolean closeIStream)
|
Method Summary | |
---|---|
void |
close(boolean evictOnClose)
|
StoreFile.BloomType |
getBloomFilterType()
|
String |
getColumnFamilyName()
|
org.apache.hadoop.io.RawComparator<byte[]> |
getComparator()
|
long |
getDeleteFamilyCnt()
|
long |
getEntries()
|
long |
getFilterEntries()
The number of Bloom filter entries in this store file, or an estimate thereof, if the Bloom filter is not loaded. |
byte[] |
getFirstKey()
|
int |
getHFileVersion()
|
byte[] |
getLastKey()
|
long |
getMaxTimestamp()
|
HFileScanner |
getScanner(boolean cacheBlocks,
boolean pread)
Deprecated. |
HFileScanner |
getScanner(boolean cacheBlocks,
boolean pread,
boolean isCompaction)
Deprecated. |
long |
getSequenceID()
|
StoreFileScanner |
getStoreFileScanner(boolean cacheBlocks,
boolean pread)
Get a scanner to scan over this StoreFile. |
StoreFileScanner |
getStoreFileScanner(boolean cacheBlocks,
boolean pread,
boolean isCompaction)
Get a scanner to scan over this StoreFile. |
long |
getTotalBloomSize()
|
long |
getTotalUncompressedBytes()
|
long |
indexSize()
|
long |
length()
|
void |
loadBloomfilter()
|
Map<byte[],byte[]> |
loadFileInfo()
|
byte[] |
midkey()
|
boolean |
passesDeleteFamilyBloomFilter(byte[] row,
int rowOffset,
int rowLen)
|
boolean |
passesGeneralBloomFilter(byte[] row,
int rowOffset,
int rowLen,
byte[] col,
int colOffset,
int colLen)
A method for checking Bloom filters. |
boolean |
passesKeyRangeFilter(Scan scan)
Checks whether the given scan rowkey range overlaps with the current storefile's |
void |
schemaConfigurationChanged()
A hook method called when schema configuration changes. |
void |
setDeleteFamilyBloomFilterFaulty()
|
void |
setGeneralBloomFilterFaulty()
|
void |
setSequenceID(long sequenceID)
|
Methods inherited from class org.apache.hadoop.hbase.regionserver.metrics.SchemaConfigured |
---|
createUnknown, getSchemaMetrics, getTableName, heapSize, isSchemaConfigured, passSchemaMetricsTo, resetSchemaMetricsConf, schemaConfAsJSON |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BloomFilter generalBloomFilter
protected BloomFilter deleteFamilyBloomFilter
protected StoreFile.BloomType bloomFilterType
protected TimeRangeTracker timeRangeTracker
protected long sequenceID
Constructor Detail |
---|
public StoreFile.Reader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, CacheConfig cacheConf, DataBlockEncoding preferredEncodingInCache) throws IOException
IOException
public StoreFile.Reader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, HFileLink hfileLink, long size, CacheConfig cacheConf, DataBlockEncoding preferredEncodingInCache, boolean closeIStream) throws IOException
IOException
Method Detail |
---|
public org.apache.hadoop.io.RawComparator<byte[]> getComparator()
public StoreFileScanner getStoreFileScanner(boolean cacheBlocks, boolean pread)
cacheBlocks
- should this scanner cache blocks?pread
- use pread (for highly concurrent small readers)
public StoreFileScanner getStoreFileScanner(boolean cacheBlocks, boolean pread, boolean isCompaction)
cacheBlocks
- should this scanner cache blocks?pread
- use pread (for highly concurrent small readers)isCompaction
- is scanner being used for compaction?
@Deprecated public HFileScanner getScanner(boolean cacheBlocks, boolean pread)
cacheBlocks
- should we cache the blocks?pread
- use pread (for concurrent small readers)
@Deprecated public HFileScanner getScanner(boolean cacheBlocks, boolean pread, boolean isCompaction)
cacheBlocks
- should we cache the blocks?pread
- use pread (for concurrent small readers)isCompaction
- is scanner being used for compaction?
public void close(boolean evictOnClose) throws IOException
IOException
public boolean passesDeleteFamilyBloomFilter(byte[] row, int rowOffset, int rowLen)
public boolean passesGeneralBloomFilter(byte[] row, int rowOffset, int rowLen, byte[] col, int colOffset, int colLen)
row
- rowOffset
- rowLen
- col
- colOffset
- colLen
-
public boolean passesKeyRangeFilter(Scan scan)
scan
- the scan specification. Used to determine the rowkey range.
public Map<byte[],byte[]> loadFileInfo() throws IOException
IOException
public void loadBloomfilter()
public long getFilterEntries()
public void setGeneralBloomFilterFaulty()
public void setDeleteFamilyBloomFilterFaulty()
public byte[] getLastKey()
public byte[] midkey() throws IOException
IOException
public long length()
public long getTotalUncompressedBytes()
public long getEntries()
public long getDeleteFamilyCnt()
public byte[] getFirstKey()
public long indexSize()
public String getColumnFamilyName()
getColumnFamilyName
in interface SchemaMetrics.SchemaAware
getColumnFamilyName
in class SchemaConfigured
public StoreFile.BloomType getBloomFilterType()
public long getSequenceID()
public void setSequenceID(long sequenceID)
public long getTotalBloomSize()
public int getHFileVersion()
public long getMaxTimestamp()
public void schemaConfigurationChanged()
SchemaConfigured
schemaConfigurationChanged
in class SchemaConfigured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |