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 void
add(IFilter.FilterKey key)
void
addTo(Ref.IdentityCollection identities)
void
clear()
void
close()
java.lang.Throwable
close(java.lang.Throwable accumulate)
boolean
isPresent(IFilter.FilterKey key)
long
offHeapSize()
Returns the amount of memory in bytes used off heap.long
serializedSize()
IFilter
sharedCopy()
-
-
-
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:
sharedCopy
in interfaceIFilter
- Specified by:
sharedCopy
in 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:
close
in interfaceSharedCloseable
-
addTo
public void addTo(Ref.IdentityCollection identities)
- Specified by:
addTo
in interfaceSharedCloseable
-
serializedSize
public long serializedSize()
- Specified by:
serializedSize
in interfaceIFilter
-
offHeapSize
public long offHeapSize()
Description copied from interface:IFilter
Returns the amount of memory in bytes used off heap.- Specified by:
offHeapSize
in interfaceIFilter
- Returns:
- the amount of memory in bytes used off heap
-
-