org.apache.hadoop.hbase.util
Interface BloomFilterBase
- All Known Subinterfaces:
- BloomFilter, BloomFilterWriter
- All Known Implementing Classes:
- ByteBloomFilter, CompoundBloomFilter, CompoundBloomFilterBase, CompoundBloomFilterWriter
@InterfaceAudience.Private
public interface BloomFilterBase
Common methods Bloom filter methods required at read and write time.
getKeyCount
long getKeyCount()
- Returns:
- The number of keys added to the bloom
getMaxKeys
long getMaxKeys()
- Returns:
- The max number of keys that can be inserted
to maintain the desired error rate
getByteSize
long getByteSize()
- Returns:
- Size of the bloom, in bytes
createBloomKey
byte[] createBloomKey(byte[] rowBuf,
int rowOffset,
int rowLen,
byte[] qualBuf,
int qualOffset,
int qualLen)
- Create a key for a row-column Bloom filter.
getComparator
org.apache.hadoop.io.RawComparator<byte[]> getComparator()
- Returns:
- Bloom key comparator
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.