Class OffHeapBitSet
java.lang.Object
org.impulsegraph.api.bitset.OffHeapBitSet
- All Implemented Interfaces:
Iterable<Integer>, ImpulseBitSet
-
Constructor Summary
ConstructorsConstructorDescriptionOffHeapBitSet(Arena arena, int bitCount) OffHeapBitSet(MemorySegment preAllocated, int bitCount) OffHeapBitSet(MemorySegment preAllocated, int bitCount, boolean isZeroed) -
Method Summary
Modifier and TypeMethodDescriptionvoidand(ImpulseBitSet set) voidandNot(ImpulseBitSet set) longvoidclear()voidclear(int bitIndex) voidforEachSetBit(IntConsumer action) Executes the given action for each set bit in this bitset.booleanget(int bitIndex) booleanisEmpty()booleanisSubsetOf(ImpulseBitSet other) intintnextSetBit(int fromIndex) voidor(ImpulseBitSet set) voidset(int bitIndex) intMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImpulseBitSet
iterator, toStreamMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
OffHeapBitSet
-
OffHeapBitSet
-
OffHeapBitSet
-
-
Method Details
-
wordCount
public int wordCount() -
maxPossibleCardinality
public int maxPossibleCardinality() -
set
public void set(int bitIndex) - Specified by:
setin interfaceImpulseBitSet
-
get
public boolean get(int bitIndex) - Specified by:
getin interfaceImpulseBitSet
-
clear
public void clear(int bitIndex) - Specified by:
clearin interfaceImpulseBitSet
-
clear
public void clear()- Specified by:
clearin interfaceImpulseBitSet
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceImpulseBitSet
-
cardinality
public long cardinality()- Specified by:
cardinalityin interfaceImpulseBitSet
-
nextSetBit
public int nextSetBit(int fromIndex) - Specified by:
nextSetBitin interfaceImpulseBitSet
-
isSubsetOf
- Specified by:
isSubsetOfin interfaceImpulseBitSet
-
or
- Specified by:
orin interfaceImpulseBitSet
-
and
- Specified by:
andin interfaceImpulseBitSet
-
andNot
- Specified by:
andNotin interfaceImpulseBitSet
-
forEachSetBit
Description copied from interface:ImpulseBitSetExecutes the given action for each set bit in this bitset.- Specified by:
forEachSetBitin interfaceImpulseBitSet
-