Uses of Class
org.roaringbitmap.RoaringBitmap
-
Packages that use RoaringBitmap Package Description org.roaringbitmap The org.roaringbitmap package provides one class (RoaringBitmap
) that users can rely upon for fast set of integers.org.roaringbitmap.buffer The org.roaringbitmap.buffer package provides two classes (MutableRoaringBitmap
and (ImmutableRoaringBitmap
) that users can rely upon for fast set of integers.org.roaringbitmap.insights -
-
Uses of RoaringBitmap in org.roaringbitmap
Classes in org.roaringbitmap with type parameters of type RoaringBitmap Modifier and Type Class Description static class
RoaringBitmapWriter.RoaringWizard<T extends RoaringBitmap>
Subclasses of RoaringBitmap in org.roaringbitmap Modifier and Type Class Description class
FastRankRoaringBitmap
This extendsRoaringBitmap
to provide better performance for .rank and .select operations, at the cost of maintain a cache of cardinalities.Fields in org.roaringbitmap declared as RoaringBitmap Modifier and Type Field Description private RoaringBitmap
IntIteratorFlyweight. roaringBitmap
private RoaringBitmap
ReverseIntIteratorFlyweight. roaringBitmap
Fields in org.roaringbitmap with type parameters of type RoaringBitmap Modifier and Type Field Description private static java.util.stream.Collector<java.util.Map.Entry<java.lang.Character,java.util.List<Container>>,RoaringArray,RoaringBitmap>
ParallelAggregation. XOR
Methods in org.roaringbitmap that return RoaringBitmap Modifier and Type Method Description static RoaringBitmap
RoaringBitmap. add(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. add(RoaringBitmap rb, long rangeStart, long rangeEnd)
Generate a new bitmap with all integers in [rangeStart,rangeEnd) added.static RoaringBitmap
RoaringBitmap. addOffset(RoaringBitmap x, long offset)
Generate a copy of the provided bitmap, but with all its values incremented by offset.static RoaringBitmap
FastAggregation. and(long[] aggregationBuffer, RoaringBitmap... bitmaps)
Compute the AND aggregate.static RoaringBitmap
FastAggregation. and(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute the AND aggregate.static RoaringBitmap
FastAggregation. and(RoaringBitmap... bitmaps)
Compute the AND aggregate.static RoaringBitmap
RoaringBitmap. and(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. and(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes AND between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
RoaringBitmap. and(RoaringBitmap x1, RoaringBitmap x2)
Bitwise AND (intersection) operation.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2)
Bitwise ANDNOT (difference) operation.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2, long rangeStart, long rangeEnd)
Bitwise ANDNOT (difference) operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).RoaringBitmap
RangeBitmap. between(long min, long max)
Returns a RoaringBitmap of rows which have a value in between the thresholds.static RoaringBitmap
BitSetUtil. bitmapOf(long[] words)
Generate a RoaringBitmap out of a long[], each long using little-endian representation of its bitsstatic RoaringBitmap
BitSetUtil. bitmapOf(java.nio.ByteBuffer bb, boolean fastRank)
Efficiently generate a RoaringBitmap from an uncompressed byte array or ByteBuffer This method tries to minimise all kinds of memory allocationstatic RoaringBitmap
BitSetUtil. bitmapOf(java.nio.ByteBuffer bb, boolean fastRank, 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 RoaringBitmap
BitSetUtil. bitmapOf(java.util.BitSet bitSet)
Generate a RoaringBitmap out of a BitSetstatic RoaringBitmap
RoaringBitmap. bitmapOf(int... dat)
Generate a bitmap with the specified values set to true.static RoaringBitmap
RoaringBitmap. bitmapOfRange(long min, long max)
static RoaringBitmap
RoaringBitmap. bitmapOfUnordered(int... data)
Efficiently builds a RoaringBitmap from unordered dataRoaringBitmap
RoaringBitmap. clone()
RoaringBitmap
RangeBitmap.DoubleEvaluation. compute(long lower, long upper)
RoaringBitmap
RangeBitmap.SingleEvaluation. computePoint(long value, boolean negate)
RoaringBitmap
RangeBitmap.SingleEvaluation. computePoint(long value, boolean negate, RoaringBitmap context)
RoaringBitmap
RangeBitmap.SingleEvaluation. computeRange(long threshold, boolean upper)
private RoaringBitmap
RangeBitmap.SingleEvaluation. computeRange(long threshold, boolean upper, RoaringBitmap context)
protected RoaringBitmap
RoaringBitmapWriter.RoaringBitmapWizard. createUnderlying(int initialCapacity)
RoaringBitmap
RangeBitmap. eq(long value)
Returns a RoaringBitmap of rows which have a value equal to the value.RoaringBitmap
RangeBitmap. eq(long value, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value equal to the value.static RoaringBitmap
RoaringBitmap. flip(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. flip(RoaringBitmap bm, long rangeStart, long rangeEnd)
Complements the bits in the given range, from rangeStart (inclusive) rangeEnd (exclusive).RoaringBitmap
RangeBitmap. gt(long threshold)
Returns a RoaringBitmap of rows which have a value greater than the threshold.RoaringBitmap
RangeBitmap. gt(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than the threshold, and intersect with the context bitmap, which will not be modified.RoaringBitmap
RangeBitmap. gte(long threshold)
Returns a RoaringBitmap of rows which have a value greater than or equal to the threshold.RoaringBitmap
RangeBitmap. gte(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than or equal to the threshold, and intersect with the context bitmap, which will not be modified.static RoaringBitmap
FastAggregation. horizontal_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Deprecated.static RoaringBitmap
FastAggregation. horizontal_or(java.util.List<? extends RoaringBitmap> bitmaps)
Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static RoaringBitmap
FastAggregation. horizontal_or(RoaringBitmap... bitmaps)
Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static RoaringBitmap
FastAggregation. horizontal_xor(RoaringBitmap... bitmaps)
Minimizes memory usage while computing the xor aggregate on a moderate number of bitmaps.protected static RoaringBitmap
RoaringBitmap. lazyor(RoaringBitmap x1, RoaringBitmap x2)
protected static RoaringBitmap
RoaringBitmap. lazyorfromlazyinputs(RoaringBitmap x1, RoaringBitmap x2)
RoaringBitmap
RoaringBitmap. limit(int maxcardinality)
Create a new Roaring bitmap containing at most maxcardinality integers.RoaringBitmap
RangeBitmap. lt(long threshold)
Returns a RoaringBitmap of rows which have a value less than the threshold.RoaringBitmap
RangeBitmap. lt(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than the threshold, and intersect with the context bitmap, which will not be modified.RoaringBitmap
RangeBitmap. lte(long threshold)
Returns a RoaringBitmap of rows which have a value less than or equal to the threshold.RoaringBitmap
RangeBitmap. lte(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than or equal to the threshold, and intersect with the context bitmap, which will not be modified.static RoaringBitmap
FastAggregation. naive_and(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall AND between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_and(RoaringBitmap... bitmaps)
Compute overall AND between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_xor(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall XOR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_xor(RoaringBitmap... bitmaps)
Compute overall XOR between bitmaps two-by-two.RoaringBitmap
RangeBitmap. neq(long value)
Returns a RoaringBitmap of rows which have a value not equal to the value.RoaringBitmap
RangeBitmap. neq(long value, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value not equal to the value.static RoaringBitmap
FastAggregation. or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
FastAggregation. or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
ParallelAggregation. or(RoaringBitmap... bitmaps)
Computes the bitwise union of the input bitmapsstatic RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes OR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
RoaringBitmap. or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
RoaringBitmap. or(RoaringBitmap x1, RoaringBitmap x2)
Bitwise OR (union) operation.static RoaringBitmap
RoaringBitmap. orNot(RoaringBitmap x1, RoaringBitmap x2, long rangeEnd)
Bitwise ORNOT operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).static RoaringBitmap
FastAggregation. priorityqueue_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Uses a priority queue to compute the or aggregate.static RoaringBitmap
FastAggregation. priorityqueue_or(RoaringBitmap... bitmaps)
Uses a priority queue to compute the or aggregate.static RoaringBitmap
FastAggregation. priorityqueue_xor(RoaringBitmap... bitmaps)
Uses a priority queue to compute the xor aggregate.static RoaringBitmap
RoaringBitmap. remove(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. remove(RoaringBitmap rb, long rangeStart, long rangeEnd)
Generate a new bitmap with all integers in [rangeStart,rangeEnd) removed.private static RoaringBitmap
RoaringBitmap. selectRangeWithoutCopy(RoaringBitmap rb, long rangeStart, long rangeEnd)
Extracts the values in the specified range, rangeStart (inclusive) and rangeEnd (exclusive) while avoiding copies as much as possible.static RoaringBitmap
FastAggregation. workAndMemoryShyAnd(long[] buffer, RoaringBitmap... bitmaps)
Computes the intersection by first intersecting the keys, avoids materialising containers, limits memory usage.static RoaringBitmap
FastAggregation. workShyAnd(long[] buffer, RoaringBitmap... bitmaps)
Computes the intersection by first intersecting the keys, avoids materialising containers.static RoaringBitmap
FastAggregation. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall XOR between bitmaps.static RoaringBitmap
FastAggregation. xor(RoaringBitmap... bitmaps)
Compute overall XOR between bitmaps.static RoaringBitmap
ParallelAggregation. xor(RoaringBitmap... bitmaps)
Computes the bitwise symmetric difference of the input bitmapsstatic RoaringBitmap
RoaringBitmap. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes XOR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
RoaringBitmap. xor(RoaringBitmap x1, RoaringBitmap x2)
Bitwise XOR (symmetric difference) operation.Methods in org.roaringbitmap that return types with arguments of type RoaringBitmap Modifier and Type Method Description java.util.function.Function<RoaringArray,RoaringBitmap>
ParallelAggregation.ContainerCollector. finisher()
private static java.util.Iterator<RoaringBitmap>
RoaringBitmap. selectRangeWithoutCopy(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Return new iterator with only values from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmapWriter.Wizard<Container,RoaringBitmap>
RoaringBitmapWriter. writer()
Methods in org.roaringbitmap with parameters of type RoaringBitmap Modifier and Type Method Description static RoaringBitmap
RoaringBitmap. add(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. add(RoaringBitmap rb, long rangeStart, long rangeEnd)
Generate a new bitmap with all integers in [rangeStart,rangeEnd) added.static RoaringBitmap
RoaringBitmap. addOffset(RoaringBitmap x, long offset)
Generate a copy of the provided bitmap, but with all its values incremented by offset.static RoaringBitmap
FastAggregation. and(long[] aggregationBuffer, RoaringBitmap... bitmaps)
Compute the AND aggregate.static RoaringBitmap
FastAggregation. and(RoaringBitmap... bitmaps)
Compute the AND aggregate.void
FastRankRoaringBitmap. and(RoaringBitmap x2)
void
RoaringBitmap. and(RoaringBitmap x2)
In-place bitwise AND (intersection) operation.static RoaringBitmap
RoaringBitmap. and(RoaringBitmap x1, RoaringBitmap x2)
Bitwise AND (intersection) operation.static int
FastAggregation. andCardinality(RoaringBitmap... bitmaps)
Compute cardinality of the AND aggregate.static int
RoaringBitmap. andCardinality(RoaringBitmap x1, RoaringBitmap x2)
Cardinality of Bitwise AND (intersection) operation.void
FastRankRoaringBitmap. andNot(RoaringBitmap x2)
void
RoaringBitmap. andNot(RoaringBitmap x2)
In-place bitwise ANDNOT (difference) operation.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2)
Bitwise ANDNOT (difference) operation.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. andNot(RoaringBitmap x1, RoaringBitmap x2, long rangeStart, long rangeEnd)
Bitwise ANDNOT (difference) operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).static int
RoaringBitmap. andNotCardinality(RoaringBitmap x1, RoaringBitmap x2)
Cardinality of the bitwise ANDNOT (left difference) operation.long
RangeBitmap. betweenCardinality(long min, long max, RoaringBitmap context)
Returns the number of rows which have a value in between the thresholds.RoaringBitmap
RangeBitmap.SingleEvaluation. computePoint(long value, boolean negate, RoaringBitmap context)
private RoaringBitmap
RangeBitmap.SingleEvaluation. computeRange(long threshold, boolean upper, RoaringBitmap context)
boolean
RoaringBitmap. contains(RoaringBitmap subset)
Checks whether the parameter is a subset of this RoaringBitmap or notlong
RangeBitmap.DoubleEvaluation. count(long lower, long upper, RoaringBitmap context)
private long
RangeBitmap.SingleEvaluation. countPoint(long threshold, boolean negate, RoaringBitmap context)
private long
RangeBitmap.SingleEvaluation. countRange(long threshold, boolean upper, RoaringBitmap context)
RoaringBitmap
RangeBitmap. eq(long value, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value equal to the value.long
RangeBitmap. eqCardinality(long value, RoaringBitmap context)
Returns the number of rows which have a value equal to the value, and intersect with the context bitmap, which will not be modified.static boolean
BitSetUtil. equals(java.util.BitSet bitset, RoaringBitmap bitmap)
Compares a RoaringBitmap and a BitSet.static RoaringBitmap
RoaringBitmap. flip(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. flip(RoaringBitmap bm, long rangeStart, long rangeEnd)
Complements the bits in the given range, from rangeStart (inclusive) rangeEnd (exclusive).static java.util.SortedMap<java.lang.Character,java.util.List<Container>>
ParallelAggregation. groupByKey(RoaringBitmap... bitmaps)
Groups the containers by their keysRoaringBitmap
RangeBitmap. gt(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than the threshold, and intersect with the context bitmap, which will not be modified.long
RangeBitmap. gtCardinality(long threshold, RoaringBitmap context)
Returns the number of rows which have a value greater than the threshold, and intersect with the context bitmap, which will not be modified.RoaringBitmap
RangeBitmap. gte(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than or equal to the threshold, and intersect with the context bitmap, which will not be modified.long
RangeBitmap. gteCardinality(long threshold, RoaringBitmap context)
Returns the number of rows which have a value greater than or equal to the threshold, and intersect with the context bitmap, which will not be modified.static RoaringBitmap
FastAggregation. horizontal_or(RoaringBitmap... bitmaps)
Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static RoaringBitmap
FastAggregation. horizontal_xor(RoaringBitmap... bitmaps)
Minimizes memory usage while computing the xor aggregate on a moderate number of bitmaps.private static int
FastAggregation. horizontalOrCardinality(RoaringBitmap... bitmaps)
static boolean
RoaringBitmap. intersects(RoaringBitmap x1, RoaringBitmap x2)
Checks whether the two bitmaps intersect.boolean
RoaringBitmap. isHammingSimilar(RoaringBitmap other, int tolerance)
Returns true if the other bitmap has no more than tolerance bits differing from this bitmap.protected void
RoaringBitmap. lazyor(RoaringBitmap x2)
protected static RoaringBitmap
RoaringBitmap. lazyor(RoaringBitmap x1, RoaringBitmap x2)
protected static RoaringBitmap
RoaringBitmap. lazyorfromlazyinputs(RoaringBitmap x1, RoaringBitmap x2)
RoaringBitmap
RangeBitmap. lt(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than the threshold, and intersect with the context bitmap, which will not be modified.long
RangeBitmap. ltCardinality(long threshold, RoaringBitmap context)
Returns the number of rows which have a value less than the threshold, and intersect with the context bitmap, which will not be modified.RoaringBitmap
RangeBitmap. lte(long threshold, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than or equal to the threshold, and intersect with the context bitmap, which will not be modified.long
RangeBitmap. lteCardinality(long threshold, RoaringBitmap context)
Returns the number of rows which have a value less than or equal to the threshold, and intersect with the context bitmap, which will not be modified.static RoaringBitmap
FastAggregation. naive_and(RoaringBitmap... bitmaps)
Compute overall AND between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_xor(RoaringBitmap... bitmaps)
Compute overall XOR between bitmaps two-by-two.protected void
RoaringBitmap. naivelazyor(RoaringBitmap x2)
static void
RoaringBitmapPrivate. naivelazyor(RoaringBitmap x1, RoaringBitmap x2)
Deprecated.RoaringBitmap
RangeBitmap. neq(long value, RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value not equal to the value.long
RangeBitmap. neqCardinality(long value, RoaringBitmap context)
Returns the number of rows which have a value not equal to the value, and intersect with the context bitmap, which will not be modified.static RoaringBitmap
FastAggregation. or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps.void
FastRankRoaringBitmap. or(RoaringBitmap x2)
static RoaringBitmap
ParallelAggregation. or(RoaringBitmap... bitmaps)
Computes the bitwise union of the input bitmapsvoid
RoaringBitmap. or(RoaringBitmap x2)
In-place bitwise OR (union) operation.static RoaringBitmap
RoaringBitmap. or(RoaringBitmap... bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
RoaringBitmap. or(RoaringBitmap x1, RoaringBitmap x2)
Bitwise OR (union) operation.static int
FastAggregation. orCardinality(RoaringBitmap... bitmaps)
Compute cardinality of the OR aggregate.static int
RoaringBitmap. orCardinality(RoaringBitmap x1, RoaringBitmap x2)
Cardinality of the bitwise OR (union) operation.void
RoaringBitmap. orNot(RoaringBitmap other, long rangeEnd)
In-place bitwise ORNOT operation.static RoaringBitmap
RoaringBitmap. orNot(RoaringBitmap x1, RoaringBitmap x2, long rangeEnd)
Bitwise ORNOT operation for the given range, rangeStart (inclusive) and rangeEnd (exclusive).static RoaringBitmap
FastAggregation. priorityqueue_or(RoaringBitmap... bitmaps)
Uses a priority queue to compute the or aggregate.static RoaringBitmap
FastAggregation. priorityqueue_xor(RoaringBitmap... bitmaps)
Uses a priority queue to compute the xor aggregate.static RoaringBitmap
RoaringBitmap. remove(RoaringBitmap rb, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the rangestatic RoaringBitmap
RoaringBitmap. remove(RoaringBitmap rb, long rangeStart, long rangeEnd)
Generate a new bitmap with all integers in [rangeStart,rangeEnd) removed.static void
RoaringBitmapPrivate. repairAfterLazy(RoaringBitmap r)
Deprecated.private static RoaringBitmap
RoaringBitmap. selectRangeWithoutCopy(RoaringBitmap rb, long rangeStart, long rangeEnd)
Extracts the values in the specified range, rangeStart (inclusive) and rangeEnd (exclusive) while avoiding copies as much as possible.static RoaringBitmap
FastAggregation. workAndMemoryShyAnd(long[] buffer, RoaringBitmap... bitmaps)
Computes the intersection by first intersecting the keys, avoids materialising containers, limits memory usage.static RoaringBitmap
FastAggregation. workShyAnd(long[] buffer, RoaringBitmap... bitmaps)
Computes the intersection by first intersecting the keys, avoids materialising containers.private static int
FastAggregation. workShyAndCardinality(RoaringBitmap... bitmaps)
void
IntIteratorFlyweight. wrap(RoaringBitmap r)
Prepares a bitmap for iterationvoid
ReverseIntIteratorFlyweight. wrap(RoaringBitmap r)
Prepares a bitmap for iterationstatic RoaringBitmap
FastAggregation. xor(RoaringBitmap... bitmaps)
Compute overall XOR between bitmaps.void
FastRankRoaringBitmap. xor(RoaringBitmap x2)
static RoaringBitmap
ParallelAggregation. xor(RoaringBitmap... bitmaps)
Computes the bitwise symmetric difference of the input bitmapsvoid
RoaringBitmap. xor(RoaringBitmap x2)
In-place bitwise XOR (symmetric difference) operation.static RoaringBitmap
RoaringBitmap. xor(RoaringBitmap x1, RoaringBitmap x2)
Bitwise XOR (symmetric difference) operation.static int
RoaringBitmap. xorCardinality(RoaringBitmap x1, RoaringBitmap x2)
Cardinality of the bitwise XOR (symmetric difference) operation.Method parameters in org.roaringbitmap with type arguments of type RoaringBitmap Modifier and Type Method Description static RoaringBitmap
FastAggregation. and(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute the AND aggregate.static RoaringBitmap
RoaringBitmap. and(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. and(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes AND between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
FastAggregation. horizontal_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Deprecated.static RoaringBitmap
FastAggregation. horizontal_or(java.util.List<? extends RoaringBitmap> bitmaps)
Minimizes memory usage while computing the or aggregate on a moderate number of bitmaps.static RoaringBitmap
FastAggregation. naive_and(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall AND between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. naive_xor(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall XOR between bitmaps two-by-two.static RoaringBitmap
FastAggregation. or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall OR between bitmaps.static RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. or(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes OR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
FastAggregation. priorityqueue_or(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Uses a priority queue to compute the or aggregate.private static java.util.Iterator<RoaringBitmap>
RoaringBitmap. selectRangeWithoutCopy(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Return new iterator with only values from rangeStart (inclusive) to rangeEnd (exclusive)static RoaringBitmap
FastAggregation. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps)
Compute overall XOR between bitmaps.static RoaringBitmap
RoaringBitmap. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps, int rangeStart, int rangeEnd)
Deprecated.use the version where longs specify the range.static RoaringBitmap
RoaringBitmap. xor(java.util.Iterator<? extends RoaringBitmap> bitmaps, long rangeStart, long rangeEnd)
Computes XOR between input bitmaps in the given range, from rangeStart (inclusive) to rangeEnd (exclusive)Constructors in org.roaringbitmap with parameters of type RoaringBitmap Constructor Description IntIteratorFlyweight(RoaringBitmap r)
Creates an instance that is ready for iteration.ReverseIntIteratorFlyweight(RoaringBitmap r)
Creates an instance that is ready for iteration.Constructor parameters in org.roaringbitmap with type arguments of type RoaringBitmap Constructor Description FastRankRoaringBitmapWizard(RoaringBitmapWriter.Wizard<Container,? extends RoaringBitmap> wizard)
-
Uses of RoaringBitmap in org.roaringbitmap.buffer
Methods in org.roaringbitmap.buffer that return RoaringBitmap Modifier and Type Method Description RoaringBitmap
ImmutableRoaringBitmap. toRoaringBitmap()
Copies this bitmap to a mutable RoaringBitmap.Constructors in org.roaringbitmap.buffer with parameters of type RoaringBitmap Constructor Description MutableRoaringBitmap(RoaringBitmap rb)
Create a MutableRoaringBitmap from a RoaringBitmap. -
Uses of RoaringBitmap in org.roaringbitmap.insights
Methods in org.roaringbitmap.insights with parameters of type RoaringBitmap Modifier and Type Method Description static BitmapStatistics
BitmapAnalyser. analyse(RoaringBitmap r)
Analyze the internal representation of bitmapMethod parameters in org.roaringbitmap.insights with type arguments of type RoaringBitmap Modifier and Type Method Description static BitmapStatistics
BitmapAnalyser. analyse(java.util.Collection<? extends RoaringBitmap> bitmaps)
Analyze the internal representation of bitmaps
-