Package org.apache.cassandra.utils.obs
Interface IBitSet
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
OffHeapBitSet
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(Ref.IdentityCollection identities) longcapacity()voidclear()voidclear(long index) clears the bit.voidclose()booleanget(long index) Returns true or false for the specified bit index.longReturns the amount of memory in bytes used off heap.voidserialize(DataOutputPlus out) longvoidset(long index) Sets the bit at the specified index.
-
Method Details
-
capacity
long capacity() -
get
boolean get(long index) Returns true or false for the specified bit index. The index should be less than the capacity. -
set
void set(long index) Sets the bit at the specified index. The index should be less than the capacity. -
clear
void clear(long index) clears the bit. The index should be less than the capacity. -
serialize
- Throws:
IOException
-
serializedSize
long serializedSize() -
clear
void clear() -
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
offHeapSize
long offHeapSize()Returns the amount of memory in bytes used off heap.- Returns:
- the amount of memory in bytes used off heap
-
addTo
-