public class RoaringBitmap32 extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_VALUE |
Constructor and Description |
---|
RoaringBitmap32() |
Modifier and Type | Method and Description |
---|---|
void |
add(int x) |
static RoaringBitmap32 |
and(RoaringBitmap32 x1,
RoaringBitmap32 x2) |
static RoaringBitmap32 |
andNot(RoaringBitmap32 x1,
RoaringBitmap32 x2) |
static RoaringBitmap32 |
bitmapOf(int... dat) |
boolean |
checkedAdd(int x) |
void |
clear() |
RoaringBitmap32 |
clone() |
boolean |
contains(int x) |
void |
deserialize(ByteBuffer buffer) |
void |
deserialize(DataInput in) |
boolean |
equals(Object o) |
int |
first() |
void |
flip(long rangeStart,
long rangeEnd) |
long |
getCardinality() |
boolean |
intersects(long minimum,
long supremum) |
boolean |
isEmpty() |
Iterator<Integer> |
iterator() |
int |
last() |
long |
nextValue(int fromValue) |
static RoaringBitmap32 |
or(Iterator<RoaringBitmap32> iterator) |
void |
or(RoaringBitmap32 other) |
static RoaringBitmap32 |
or(RoaringBitmap32 x1,
RoaringBitmap32 x2) |
long |
previousValue(int fromValue) |
byte[] |
serialize() |
void |
serialize(DataOutput out) |
String |
toString() |
public static final int MAX_VALUE
public void add(int x)
public void or(RoaringBitmap32 other)
public boolean checkedAdd(int x)
public boolean contains(int x)
public boolean isEmpty()
public long getCardinality()
public int first()
public int last()
public long nextValue(int fromValue)
public long previousValue(int fromValue)
public boolean intersects(long minimum, long supremum)
public RoaringBitmap32 clone()
public void serialize(DataOutput out) throws IOException
IOException
public byte[] serialize()
public void deserialize(DataInput in) throws IOException
IOException
public void deserialize(ByteBuffer buffer) throws IOException
IOException
public void clear()
public void flip(long rangeStart, long rangeEnd)
@VisibleForTesting public static RoaringBitmap32 bitmapOf(int... dat)
public static RoaringBitmap32 and(RoaringBitmap32 x1, RoaringBitmap32 x2)
public static RoaringBitmap32 or(RoaringBitmap32 x1, RoaringBitmap32 x2)
public static RoaringBitmap32 or(Iterator<RoaringBitmap32> iterator)
public static RoaringBitmap32 andNot(RoaringBitmap32 x1, RoaringBitmap32 x2)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.