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()
IBitSet
offHeapSize
in interface IBitSet
public void addTo(Ref.IdentityCollection identities)
public boolean get(long index)
IBitSet
public void set(long index)
IBitSet
public void set(long offset, byte b)
public void clear(long index)
IBitSet
public void serialize(DataOutputPlus out) throws java.io.IOException
public void serializeOldBfFormat(DataOutputPlus out) throws java.io.IOException
java.io.IOException
public long serializedSize()
serializedSize
in interface IBitSet
public static OffHeapBitSet deserialize(java.io.DataInputStream in, boolean oldBfFormat) throws java.io.IOException
java.io.IOException
public void close()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2021 The Apache Software Foundation