CompositeSet class

A composite BitSet using multiple chunks of BitSet objects with offsets.

By default, each chunk is using a maximum cardinality of 2^16 entries, following the RoaringBitmap pattern.

Inheritance

Constructors

CompositeSet({int chunkBits = 16, List<BitSetChunk>? chunks})

Properties

cardinality int
The number of members.
no setteroverride
chunkBits int
The bits used for each chunk.
final
chunks List<BitSetChunk>
The list of chunks.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The largest addressable or contained member of the BitSet:
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(CompositeSet set) → void
asIntIterable() Iterable<int>
Returns an iterable wrapper of the BitSet that iterates over the index members that are set to true.
override
asUint32Iterable() Iterable<int>
Returns an iterable wrapper that returns the content of the BitSet as 32-bit int blocks. Members are iterated from a zero-based index and each block contains 32 values as a bit index.
override
clone() CompositeSet
Creates a copy of the current BitSet.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimize({BitArrayOptimizer? optimizer, int removeThreshold = 0}) → void
Optimize the containers.
or(CompositeSet set) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) bool
Whether the value specified by the index is member of the collection.
override
operator []=(int index, bool value) → void
Sets the bit specified by the index to the value.