|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.CompoundBloomFilterBase
@InterfaceAudience.Private public class CompoundBloomFilterBase
Field Summary | |
---|---|
protected KeyValue.KVComparator |
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 Summary | |
---|---|
CompoundBloomFilterBase()
|
Method Summary | |
---|---|
byte[] |
createBloomKey(byte[] row,
int roffset,
int rlength,
byte[] qualifier,
int qoffset,
int qlength)
Prepare an ordered pair of row and qualifier to be compared using KeyValue.KeyComparator. |
long |
getByteSize()
|
KeyValue.KVComparator |
getComparator()
|
long |
getKeyCount()
|
long |
getMaxKeys()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numChunks
public static final int VERSION
protected float errorRate
protected long totalKeyCount
protected long totalByteSize
protected long totalMaxKeys
protected int hashType
Hash
protected KeyValue.KVComparator comparator
Constructor Detail |
---|
public CompoundBloomFilterBase()
Method Detail |
---|
public long getMaxKeys()
getMaxKeys
in interface BloomFilterBase
public long getKeyCount()
getKeyCount
in interface BloomFilterBase
public long getByteSize()
getByteSize
in interface BloomFilterBase
public byte[] createBloomKey(byte[] row, int roffset, int rlength, byte[] qualifier, int qoffset, int qlength)
createBloomKey
in interface BloomFilterBase
public KeyValue.KVComparator getComparator()
getComparator
in interface BloomFilterBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |