Package org.neo4j.gds.core.utils.paged
Class HugeAtomicGrowingBitSet
- java.lang.Object
-
- org.neo4j.gds.core.utils.paged.HugeAtomicBitSet
-
- org.neo4j.gds.core.utils.paged.HugeAtomicGrowingBitSet
-
public final class HugeAtomicGrowingBitSet extends HugeAtomicBitSet
-
-
Field Summary
-
Fields inherited from class org.neo4j.gds.core.utils.paged.HugeAtomicBitSet
bits
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flip(long index)
Toggles the bit at the given index.boolean
getAndSet(long index)
Sets a bit and returns the previous value.void
set(long index)
Sets the bit at the given index to true.void
set(long startIndex, long endIndex)
Sets the bits from the startIndex (inclusive) to the endIndex (exclusive).-
Methods inherited from class org.neo4j.gds.core.utils.paged.HugeAtomicBitSet
allSet, cardinality, clear, clear, fixed, forEachSetBit, get, growing, isEmpty, memoryEstimation, size
-
-
-
-
Method Detail
-
set
public void set(long index)
Description copied from class:HugeAtomicBitSet
Sets the bit at the given index to true.- Overrides:
set
in classHugeAtomicBitSet
-
set
public void set(long startIndex, long endIndex)
Description copied from class:HugeAtomicBitSet
Sets the bits from the startIndex (inclusive) to the endIndex (exclusive).- Overrides:
set
in classHugeAtomicBitSet
-
getAndSet
public boolean getAndSet(long index)
Description copied from class:HugeAtomicBitSet
Sets a bit and returns the previous value. The index should be less than the BitSet size.- Overrides:
getAndSet
in classHugeAtomicBitSet
-
flip
public void flip(long index)
Description copied from class:HugeAtomicBitSet
Toggles the bit at the given index.- Overrides:
flip
in classHugeAtomicBitSet
-
-