org.apache.cassandra.utils
Class BloomFilter

java.lang.Object
  extended by org.apache.cassandra.utils.Filter
      extended by org.apache.cassandra.utils.BloomFilter
Direct Known Subclasses:
Murmur2BloomFilter, Murmur3BloomFilter

public abstract class BloomFilter
extends Filter


Field Summary
 OpenBitSet bitset
           
 
Method Summary
 void add(java.nio.ByteBuffer key)
           
 void clear()
           
protected abstract  long[] hash(java.nio.ByteBuffer b, int position, int remaining, long seed)
           
 boolean isPresent(java.nio.ByteBuffer key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitset

public final OpenBitSet bitset
Method Detail

hash

protected abstract long[] hash(java.nio.ByteBuffer b,
                               int position,
                               int remaining,
                               long seed)

add

public void add(java.nio.ByteBuffer key)
Specified by:
add in class Filter

isPresent

public boolean isPresent(java.nio.ByteBuffer key)
Specified by:
isPresent in class Filter

clear

public void clear()
Specified by:
clear in class Filter


Copyright © 2012 The Apache Software Foundation