public class CompoundBloomFilterBase extends Object implements BloomFilterBase
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.io.RawComparator<byte[]> |
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 |
---|---|
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() |
org.apache.hadoop.io.RawComparator<byte[]> |
getComparator() |
long |
getKeyCount() |
long |
getMaxKeys() |
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 org.apache.hadoop.io.RawComparator<byte[]> comparator
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 org.apache.hadoop.io.RawComparator<byte[]> getComparator()
getComparator
in interface BloomFilterBase
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.