org.apache.hadoop.hbase.util
Interface BloomFilterBase

All Known Subinterfaces:
BloomFilter, BloomFilterWriter
All Known Implementing Classes:
ByteBloomFilter, CompoundBloomFilter, CompoundBloomFilterBase, CompoundBloomFilterWriter

public interface BloomFilterBase

Common methods Bloom filter methods required at read and write time.


Method Summary
 byte[] createBloomKey(byte[] rowBuf, int rowOffset, int rowLen, byte[] qualBuf, int qualOffset, int qualLen)
          Create a key for a row-column Bloom filter.
 long getByteSize()
           
 org.apache.hadoop.io.RawComparator<byte[]> getComparator()
           
 long getKeyCount()
           
 long getMaxKeys()
           
 

Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.