public class BitSet extends Object
| Constructor and Description |
|---|
BitSet(int byteSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
bitSize()
Number of bits
|
void |
clear()
Clear the bit set.
|
boolean |
get(int index)
Returns true if the bit is set in the specified index.
|
void |
set(int index)
Sets the bit at specified index.
|
void |
setMemorySegment(org.apache.flink.core.memory.MemorySegment memorySegment,
int offset) |
byte[] |
toBytes()
Serializing
MemorySegment to bytes, note that only heap memory is currently
supported. |
String |
toString() |
public void setMemorySegment(org.apache.flink.core.memory.MemorySegment memorySegment,
int offset)
public void set(int index)
index - - positionpublic boolean get(int index)
index - - positionpublic int bitSize()
public byte[] toBytes()
MemorySegment to bytes, note that only heap memory is currently
supported.public void clear()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.