| Constructor and Description |
|---|
OffHeapBitSet(long numBits) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTo(Ref.IdentityCollection identities) |
long |
capacity() |
void |
clear() |
void |
clear(long index)
clears the bit.
|
void |
close() |
static OffHeapBitSet |
deserialize(java.io.DataInputStream in,
boolean oldBfFormat) |
boolean |
equals(java.lang.Object o) |
boolean |
get(long index)
Returns true or false for the specified bit index.
|
int |
hashCode() |
long |
offHeapSize()
Returns the amount of memory in bytes used off heap.
|
void |
serialize(DataOutputPlus out) |
long |
serializedSize() |
void |
serializeOldBfFormat(DataOutputPlus out) |
void |
set(long index)
Sets the bit at the specified index.
|
void |
set(long offset,
byte b) |
java.lang.String |
toString() |
public long offHeapSize()
IBitSetoffHeapSize in interface IBitSetpublic void addTo(Ref.IdentityCollection identities)
public boolean get(long index)
IBitSetpublic void set(long index)
IBitSetpublic void set(long offset,
byte b)
public void clear(long index)
IBitSetpublic void serialize(DataOutputPlus out) throws java.io.IOException
public void serializeOldBfFormat(DataOutputPlus out) throws java.io.IOException
java.io.IOExceptionpublic long serializedSize()
serializedSize in interface IBitSetpublic static OffHeapBitSet deserialize(java.io.DataInputStream in, boolean oldBfFormat) throws java.io.IOException
java.io.IOExceptionpublic void close()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2022 The Apache Software Foundation