@InterfaceAudience.Private public class CompoundBloomFilterBase extends Object implements BloomFilterBase
| Modifier and Type | Field and Description |
|---|---|
protected CellComparator |
comparator
Comparator used to compare Bloom filter keys
|
protected float |
errorRate
Target error rate for configuring the filter and for information
|
protected int |
hashType
Hash function type to use, as defined in
Hash |
protected int |
numChunks
At read time, the total number of chunks.
|
protected long |
totalByteSize |
protected long |
totalKeyCount
The total number of keys in all chunks
|
protected long |
totalMaxKeys |
static int |
VERSION
The Bloom filter version.
|
| Constructor and Description |
|---|
CompoundBloomFilterBase() |
| Modifier and Type | Method and Description |
|---|---|
long |
getByteSize()
Returns Size of the bloom, in bytes
|
long |
getKeyCount()
Returns The number of keys added to the bloom
|
long |
getMaxKeys()
Returns The max number of keys that can be inserted to maintain the desired error rate
|
protected int numChunks
public static final int VERSION
protected float errorRate
protected long totalKeyCount
protected long totalByteSize
protected long totalMaxKeys
protected int hashType
Hashprotected CellComparator comparator
public long getMaxKeys()
BloomFilterBasegetMaxKeys in interface BloomFilterBasepublic long getKeyCount()
BloomFilterBasegetKeyCount in interface BloomFilterBasepublic long getByteSize()
BloomFilterBasegetByteSize in interface BloomFilterBaseCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.