Package org.apache.hadoop.hbase.io.hfile
Class CompoundBloomFilterBase
java.lang.Object
org.apache.hadoop.hbase.io.hfile.CompoundBloomFilterBase
- All Implemented Interfaces:
BloomFilterBase
- Direct Known Subclasses:
CompoundBloomFilter,CompoundBloomFilterWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CellComparatorComparator used to compare Bloom filter keysprotected floatTarget error rate for configuring the filter and for informationprotected intHash function type to use, as defined inHashprotected intAt read time, the total number of chunks.protected longprotected longThe total number of keys in all chunksprotected longstatic final intThe Bloom filter version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns Size of the bloom, in byteslongReturns The number of keys added to the bloomlongReturns The max number of keys that can be inserted to maintain the desired error rate
-
Field Details
-
numChunks
At read time, the total number of chunks. At write time, the number of chunks created so far. The first chunk has an ID of 0, and the current chunk has the ID of numChunks - 1. -
VERSION
The Bloom filter version. There used to be a DynamicByteBloomFilter which had version 2.- See Also:
-
errorRate
Target error rate for configuring the filter and for information -
totalKeyCount
The total number of keys in all chunks -
totalByteSize
-
totalMaxKeys
-
hashType
Hash function type to use, as defined inHash -
comparator
Comparator used to compare Bloom filter keys
-
-
Constructor Details
-
CompoundBloomFilterBase
public CompoundBloomFilterBase()
-
-
Method Details
-
getMaxKeys
Description copied from interface:BloomFilterBaseReturns The max number of keys that can be inserted to maintain the desired error rate- Specified by:
getMaxKeysin interfaceBloomFilterBase
-
getKeyCount
Description copied from interface:BloomFilterBaseReturns The number of keys added to the bloom- Specified by:
getKeyCountin interfaceBloomFilterBase
-
getByteSize
Description copied from interface:BloomFilterBaseReturns Size of the bloom, in bytes- Specified by:
getByteSizein interfaceBloomFilterBase
-