Uses of Class
org.roaringbitmap.buffer.MutableRoaringBitmap
Packages that use MutableRoaringBitmap
Package
Description
The org.roaringbitmap package provides
one class (
RoaringBitmap
) that users
can rely upon for fast set of integers.The org.roaringbitmap.buffer package provides
two classes (
MutableRoaringBitmap
and
(ImmutableRoaringBitmap
) that users
can rely upon for fast set of integers.-
Uses of MutableRoaringBitmap in org.roaringbitmap
Methods in org.roaringbitmap that return MutableRoaringBitmapModifier and TypeMethodDescriptionprotected MutableRoaringBitmap
RoaringBitmapWriter.BufferWizard.createUnderlying
(int initialCapacity) RoaringBitmap.toMutableRoaringBitmap()
Convert (copies) to a mutable roaring bitmap.Methods in org.roaringbitmap that return types with arguments of type MutableRoaringBitmap -
Uses of MutableRoaringBitmap in org.roaringbitmap.buffer
Fields in org.roaringbitmap.buffer with type parameters of type MutableRoaringBitmapModifier and TypeFieldDescriptionprivate static final Collector
<Map.Entry<Character, List<MappeableContainer>>, MutableRoaringArray, MutableRoaringBitmap> BufferParallelAggregation.XOR
Methods in org.roaringbitmap.buffer that return MutableRoaringBitmapModifier and TypeMethodDescriptionstatic MutableRoaringBitmap
MutableRoaringBitmap.add
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.add
(MutableRoaringBitmap rb, long rangeStart, long rangeEnd) Generate a new bitmap with all integers in [rangeStart,rangeEnd) added.static MutableRoaringBitmap
MutableRoaringBitmap.addOffset
(ImmutableRoaringBitmap x, long offset) Generate a copy of the provided bitmap, but with all its values incremented by offset.static MutableRoaringBitmap
BufferFastAggregation.and
(long[] aggregationBuffer, Iterator<? extends ImmutableRoaringBitmap> bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
BufferFastAggregation.and
(long[] aggregationBuffer, ImmutableRoaringBitmap... bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
BufferFastAggregation.and
(Iterator<? extends ImmutableRoaringBitmap> bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
BufferFastAggregation.and
(ImmutableRoaringBitmap... bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
BufferFastAggregation.and
(MutableRoaringBitmap... bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
ImmutableRoaringBitmap.and
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the range.static MutableRoaringBitmap
ImmutableRoaringBitmap.and
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, long rangeStart, long rangeEnd) Computes AND between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static MutableRoaringBitmap
ImmutableRoaringBitmap.and
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2) Bitwise AND (intersection) operation.static MutableRoaringBitmap
MutableRoaringBitmap.and
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise AND (intersection) operation.static MutableRoaringBitmap
ImmutableRoaringBitmap.andNot
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2) Bitwise ANDNOT (difference) operation.static MutableRoaringBitmap
ImmutableRoaringBitmap.andNot
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the range.static MutableRoaringBitmap
ImmutableRoaringBitmap.andNot
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2, long rangeStart, long rangeEnd) Bitwise ANDNOT (difference) operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).static MutableRoaringBitmap
MutableRoaringBitmap.andNot
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise ANDNOT (difference) operation.static MutableRoaringBitmap
BufferBitSetUtil.bitmapOf
(long[] words) Generate a MutableRoaringBitmap out of a long[], each long using little-endian representation of its bitsstatic MutableRoaringBitmap
BufferBitSetUtil.bitmapOf
(ByteBuffer bb) Efficiently generate a RoaringBitmap from an uncompressed byte array or ByteBuffer This method tries to minimise all kinds of memory allocationstatic MutableRoaringBitmap
BufferBitSetUtil.bitmapOf
(ByteBuffer bb, long[] wordsBuffer) Efficiently generate a RoaringBitmap from an uncompressed byte array or ByteBuffer This method tries to minimise all kinds of memory allocation
You can provide a cached wordsBuffer for avoiding 8 KB of extra allocation on every call No reference is kept to the wordsBuffer, so it can be cached as a ThreadLocalstatic MutableRoaringBitmap
Generate a MutableRoaringBitmap out of a BitSetstatic MutableRoaringBitmap
MutableRoaringBitmap.bitmapOf
(int... dat) Generate a bitmap with the specified values set to true.MutableRoaringBitmap.clone()
static MutableRoaringBitmap
ImmutableRoaringBitmap.flip
(ImmutableRoaringBitmap bm, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
ImmutableRoaringBitmap.flip
(ImmutableRoaringBitmap bm, long rangeStart, long rangeEnd) Complements the bits in the given range, from rangeStart (inclusive) rangeEnd (exclusive).static MutableRoaringBitmap
MutableRoaringBitmap.flip
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.flip
(MutableRoaringBitmap bm, long rangeStart, long rangeEnd) Complements the bits in the given range, from rangeStart (inclusive) rangeEnd (exclusive).static MutableRoaringBitmap
BufferFastAggregation.horizontal_or
(Iterator bitmaps) Deprecated.static MutableRoaringBitmap
BufferFastAggregation.horizontal_or
(ImmutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static MutableRoaringBitmap
BufferFastAggregation.horizontal_or
(MutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static MutableRoaringBitmap
BufferFastAggregation.horizontal_xor
(ImmutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the xor aggregate on a moderate number of bitmaps.static MutableRoaringBitmap
BufferFastAggregation.horizontal_xor
(MutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the xor aggregate on a moderate number of bitmaps.protected static MutableRoaringBitmap
ImmutableRoaringBitmap.lazyor
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2) protected static MutableRoaringBitmap
MutableRoaringBitmap.lazyorfromlazyinputs
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) ImmutableRoaringBitmap.limit
(int maxcardinality) Create a new Roaring bitmap containing at most maxcardinality integers.static MutableRoaringBitmap
Compute overall AND between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_and
(ImmutableRoaringBitmap... bitmaps) Compute overall AND between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_and
(MutableRoaringBitmap... bitmaps) Compute overall AND between bitmaps two-by-two.static MutableRoaringBitmap
Compute overall OR between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_or
(ImmutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_or
(MutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps two-by-two.static MutableRoaringBitmap
Compute overall XOR between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_xor
(ImmutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_xor
(MutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps two-by-two.static MutableRoaringBitmap
Compute overall OR between bitmaps.static MutableRoaringBitmap
BufferFastAggregation.or
(ImmutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
BufferFastAggregation.or
(MutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
BufferParallelAggregation.or
(ImmutableRoaringBitmap... bitmaps) Computes the bitwise union of the input bitmapsstatic MutableRoaringBitmap
ImmutableRoaringBitmap.or
(Iterator<? extends ImmutableRoaringBitmap> bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
ImmutableRoaringBitmap.or
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the range.static MutableRoaringBitmap
ImmutableRoaringBitmap.or
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, long rangeStart, long rangeEnd) Computes OR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static MutableRoaringBitmap
ImmutableRoaringBitmap.or
(ImmutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
ImmutableRoaringBitmap.or
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2) Bitwise OR (union) operation.static MutableRoaringBitmap
MutableRoaringBitmap.or
(ImmutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
MutableRoaringBitmap.or
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise OR (union) operation.static MutableRoaringBitmap
ImmutableRoaringBitmap.orNot
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2, long rangeEnd) Bitwise ORNOT operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).static MutableRoaringBitmap
BufferFastAggregation.priorityqueue_or
(Iterator bitmaps) Uses a priority queue to compute the or aggregate.static MutableRoaringBitmap
BufferFastAggregation.priorityqueue_or
(ImmutableRoaringBitmap... bitmaps) Uses a priority queue to compute the or aggregate.static MutableRoaringBitmap
BufferFastAggregation.priorityqueue_xor
(ImmutableRoaringBitmap... bitmaps) Uses a priority queue to compute the xor aggregate.static MutableRoaringBitmap
MutableRoaringBitmap.remove
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.remove
(MutableRoaringBitmap rb, long rangeStart, long rangeEnd) Generate a new bitmap with all integers in [rangeStart,rangeEnd) removed.private static MutableRoaringBitmap
ImmutableRoaringBitmap.selectRangeWithoutCopy
(ImmutableRoaringBitmap rb, long rangeStart, long rangeEnd) Extracts the values in the specified range, rangeStart (inclusive) and rangeEnd (exclusive) while avoiding copies as much as possible.ImmutableRoaringBitmap.toMutableRoaringBitmap()
Copies the content of this bitmap to a bitmap that can be modified.static MutableRoaringBitmap
BufferFastAggregation.workAndMemoryShyAnd
(long[] buffer, ImmutableRoaringBitmap... bitmaps) Computes the intersection by first intersecting the keys, avoids materialising containers, limits memory usage.(package private) static MutableRoaringBitmap
BufferFastAggregation.workShyAnd
(long[] aggregationBuffer, Iterator<? extends ImmutableRoaringBitmap> bitmaps) Computes the intersection by first intersecting the keys, avoids materialising containers.(package private) static MutableRoaringBitmap
BufferFastAggregation.workShyAnd
(long[] aggregationBuffer, ImmutableRoaringBitmap... bitmaps) Computes the intersection by first intersecting the keys, avoids materialising containers.static MutableRoaringBitmap
Compute overall XOR between bitmaps.static MutableRoaringBitmap
BufferFastAggregation.xor
(ImmutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps.static MutableRoaringBitmap
BufferFastAggregation.xor
(MutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps.static MutableRoaringBitmap
BufferParallelAggregation.xor
(ImmutableRoaringBitmap... bitmaps) Computes the bitwise symmetric difference of the input bitmapsstatic MutableRoaringBitmap
ImmutableRoaringBitmap.xor
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the range.static MutableRoaringBitmap
ImmutableRoaringBitmap.xor
(Iterator<? extends ImmutableRoaringBitmap> bitmaps, long rangeStart, long rangeEnd) Computes XOR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static MutableRoaringBitmap
ImmutableRoaringBitmap.xor
(ImmutableRoaringBitmap x1, ImmutableRoaringBitmap x2) Bitwise XOR (symmetric difference) operation.static MutableRoaringBitmap
MutableRoaringBitmap.xor
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise XOR (symmetric difference) operation.Methods in org.roaringbitmap.buffer that return types with arguments of type MutableRoaringBitmapMethods in org.roaringbitmap.buffer with parameters of type MutableRoaringBitmapModifier and TypeMethodDescriptionstatic MutableRoaringBitmap
MutableRoaringBitmap.add
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.add
(MutableRoaringBitmap rb, long rangeStart, long rangeEnd) Generate a new bitmap with all integers in [rangeStart,rangeEnd) added.static MutableRoaringBitmap
BufferFastAggregation.and
(MutableRoaringBitmap... bitmaps) Compute the AND aggregate.static MutableRoaringBitmap
MutableRoaringBitmap.and
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise AND (intersection) operation.static MutableRoaringBitmap
MutableRoaringBitmap.andNot
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise ANDNOT (difference) operation.private static ImmutableRoaringBitmap[]
BufferFastAggregation.convertToImmutable
(MutableRoaringBitmap[] array) static MutableRoaringBitmap
MutableRoaringBitmap.flip
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.flip
(MutableRoaringBitmap bm, long rangeStart, long rangeEnd) Complements the bits in the given range, from rangeStart (inclusive) rangeEnd (exclusive).static MutableRoaringBitmap
BufferFastAggregation.horizontal_or
(MutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static MutableRoaringBitmap
BufferFastAggregation.horizontal_xor
(MutableRoaringBitmap... bitmaps) Minimizes memory usage while computing the xor aggregate on a moderate number of bitmaps.protected static MutableRoaringBitmap
MutableRoaringBitmap.lazyorfromlazyinputs
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) static MutableRoaringBitmap
BufferFastAggregation.naive_and
(MutableRoaringBitmap... bitmaps) Compute overall AND between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_or
(MutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps two-by-two.static MutableRoaringBitmap
BufferFastAggregation.naive_xor
(MutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps two-by-two.static void
MutableRoaringBitmapPrivate.naivelazyor
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Deprecated.static MutableRoaringBitmap
BufferFastAggregation.or
(MutableRoaringBitmap... bitmaps) Compute overall OR between bitmaps.static MutableRoaringBitmap
MutableRoaringBitmap.or
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise OR (union) operation.static MutableRoaringBitmap
MutableRoaringBitmap.remove
(MutableRoaringBitmap rb, int rangeStart, int rangeEnd) Deprecated.use the version where longs specify the rangestatic MutableRoaringBitmap
MutableRoaringBitmap.remove
(MutableRoaringBitmap rb, long rangeStart, long rangeEnd) Generate a new bitmap with all integers in [rangeStart,rangeEnd) removed.static void
MutableRoaringBitmapPrivate.repairAfterLazy
(MutableRoaringBitmap r) Deprecated.static MutableRoaringBitmap
BufferFastAggregation.xor
(MutableRoaringBitmap... bitmaps) Compute overall XOR between bitmaps.static MutableRoaringBitmap
MutableRoaringBitmap.xor
(MutableRoaringBitmap x1, MutableRoaringBitmap x2) Bitwise XOR (symmetric difference) operation.Method parameters in org.roaringbitmap.buffer with type arguments of type MutableRoaringBitmapModifier and TypeMethodDescriptionstatic Iterator
<ImmutableRoaringBitmap> BufferFastAggregation.convertToImmutable
(Iterator<MutableRoaringBitmap> i) Convenience method converting one type of iterator into another, to avoid unnecessary warnings.