public class BloomFilter extends WrappedSharedCloseable implements IFilter
IFilter.FilterKey
Modifier and Type | Field and Description |
---|---|
IBitSet |
bitset |
int |
hashCount |
static org.apache.cassandra.utils.BloomFilterSerializer |
serializer |
Modifier and Type | Method and Description |
---|---|
void |
add(IFilter.FilterKey key) |
void |
clear() |
long[] |
getHashBuckets(IFilter.FilterKey key,
int hashCount,
long max) |
boolean |
isPresent(IFilter.FilterKey key) |
long |
offHeapSize()
Returns the amount of memory in bytes used off heap.
|
long |
serializedSize() |
IFilter |
sharedCopy() |
close, close, isCleanedUp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public final IBitSet bitset
public final int hashCount
public static final org.apache.cassandra.utils.BloomFilterSerializer serializer
public long serializedSize()
serializedSize
in interface IFilter
public long[] getHashBuckets(IFilter.FilterKey key, int hashCount, long max)
public void add(IFilter.FilterKey key)
public final boolean isPresent(IFilter.FilterKey key)
public IFilter sharedCopy()
sharedCopy
in interface SharedCloseable
sharedCopy
in interface IFilter
public long offHeapSize()
IFilter
offHeapSize
in interface IFilter
Copyright © 2020 The Apache Software Foundation