Package org.apache.cassandra.utils
Class AlwaysPresentFilter
- java.lang.Object
-
- org.apache.cassandra.utils.AlwaysPresentFilter
-
- All Implemented Interfaces:
java.lang.AutoCloseable,SharedCloseable,IFilter
public class AlwaysPresentFilter extends java.lang.Object implements IFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.IFilter
IFilter.FilterKey
-
-
Constructor Summary
Constructors Constructor Description AlwaysPresentFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IFilter.FilterKey key)voidaddTo(Ref.IdentityCollection identities)voidclear()voidclose()java.lang.Throwableclose(java.lang.Throwable accumulate)booleanisPresent(IFilter.FilterKey key)longoffHeapSize()Returns the amount of memory in bytes used off heap.longserializedSize()IFiltersharedCopy()
-
-
-
Method Detail
-
isPresent
public boolean isPresent(IFilter.FilterKey key)
-
add
public void add(IFilter.FilterKey key)
-
close
public void close()
-
sharedCopy
public IFilter sharedCopy()
- Specified by:
sharedCopyin interfaceIFilter- 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.
-
close
public java.lang.Throwable close(java.lang.Throwable accumulate)
- Specified by:
closein interfaceSharedCloseable
-
addTo
public void addTo(Ref.IdentityCollection identities)
- Specified by:
addToin interfaceSharedCloseable
-
serializedSize
public long serializedSize()
- Specified by:
serializedSizein interfaceIFilter
-
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
-
-