public class BloomFilter extends WrappedSharedCloseable implements IFilter
IFilter.FilterKey
Modifier and Type | Field and Description |
---|---|
IBitSet |
bitset |
int |
hashCount |
boolean |
oldBfHashOrder
CASSANDRA-8413: 3.0 (inverted) bloom filters have no 'static' bits caused by using the same upper bits
for both bloom filter and token distribution.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IFilter.FilterKey key) |
void |
addTo(Ref.IdentityCollection identities) |
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() |
java.lang.String |
toString() |
close, close, isCleanedUp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public final IBitSet bitset
public final int hashCount
public final boolean oldBfHashOrder
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
public java.lang.String toString()
toString
in class java.lang.Object
public void addTo(Ref.IdentityCollection identities)
addTo
in interface SharedCloseable
addTo
in class SharedCloseableImpl
Copyright © 2017 The Apache Software Foundation