Package org.apache.cassandra.utils
Class BloomFilter
java.lang.Object
org.apache.cassandra.utils.concurrent.SharedCloseableImpl
org.apache.cassandra.utils.concurrent.WrappedSharedCloseable
org.apache.cassandra.utils.BloomFilter
- All Implemented Interfaces:
AutoCloseable,SharedCloseable,IFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.IFilter
IFilter.FilterKey -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IFilter.FilterKey key) voidaddTo(Ref.IdentityCollection identities) voidclear()long[]getHashBuckets(IFilter.FilterKey key, int hashCount, long max) booleanfinal booleanlongReturns the amount of memory in bytes used off heap.voidserialize(DataOutputStreamPlus out, boolean old) longserializedSize(boolean old) toString()Methods inherited from class org.apache.cassandra.utils.concurrent.SharedCloseableImpl
close, close, isCleanedUpMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.SharedCloseable
close
-
Field Details
-
bitset
-
hashCount
public final int hashCount
-
-
Method Details
-
serializedSize
public long serializedSize(boolean old) - Specified by:
serializedSizein interfaceIFilter
-
serialize
- Specified by:
serializein interfaceIFilter- Throws:
IOException
-
getHashBuckets
-
add
-
isPresent
-
clear
public void clear() -
offHeapSize
public long offHeapSize()Description copied from interface:IFilterReturns the amount of memory in bytes used off heap.- Specified by:
offHeapSizein interfaceIFilter- Returns:
- the amount of memory in bytes used off heap
-
isInformative
public boolean isInformative()- Specified by:
isInformativein interfaceIFilter
-
toString
-
addTo
- Specified by:
addToin interfaceSharedCloseable- Overrides:
addToin classSharedCloseableImpl
-