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
Modifier and TypeFieldDescriptionprotected CellComparator
Comparator used to compare Bloom filter keysprotected float
Target error rate for configuring the filter and for informationprotected int
Hash function type to use, as defined inHash
protected int
At read time, the total number of chunks.protected long
protected long
The total number of keys in all chunksprotected long
static final int
The Bloom filter version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns Size of the bloom, in byteslong
Returns The number of keys added to the bloomlong
Returns 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:BloomFilterBase
Returns The max number of keys that can be inserted to maintain the desired error rate- Specified by:
getMaxKeys
in interfaceBloomFilterBase
-
getKeyCount
Description copied from interface:BloomFilterBase
Returns The number of keys added to the bloom- Specified by:
getKeyCount
in interfaceBloomFilterBase
-
getByteSize
Description copied from interface:BloomFilterBase
Returns Size of the bloom, in bytes- Specified by:
getByteSize
in interfaceBloomFilterBase
-