Package org.apache.cassandra.utils
Interface IFilter
-
- All Superinterfaces:
java.lang.AutoCloseable,SharedCloseable
- All Known Implementing Classes:
AlwaysPresentFilter,BloomFilter
public interface IFilter extends SharedCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIFilter.FilterKey
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(IFilter.FilterKey key)voidclear()voidclose()booleanisPresent(IFilter.FilterKey key)longoffHeapSize()Returns the amount of memory in bytes used off heap.longserializedSize()IFiltersharedCopy()-
Methods inherited from interface org.apache.cassandra.utils.concurrent.SharedCloseable
addTo, close
-
-
-
-
Method Detail
-
add
void add(IFilter.FilterKey key)
-
isPresent
boolean isPresent(IFilter.FilterKey key)
-
clear
void clear()
-
serializedSize
long serializedSize()
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
sharedCopy
IFilter sharedCopy()
- Specified by:
sharedCopyin interfaceSharedCloseable- Returns:
- a new instance of the object representing the same state and backed by the same underlying resources. Coordinates with the original (and other instances) when the underlying resource should be closed. Throws an exception if the shared resource has already been closed.
-
offHeapSize
long offHeapSize()
Returns the amount of memory in bytes used off heap.- Returns:
- the amount of memory in bytes used off heap
-
-