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(byte[] rbmBytes) |
void |
deserialize(DataInput in) |
boolean |
equals(Object o) |
void |
flip(long rangeStart,
long rangeEnd) |
long |
getCardinality() |
boolean |
isEmpty() |
Iterator<Integer> |
iterator() |
int |
last() |
static RoaringBitmap32 |
or(Iterator<RoaringBitmap32> iterator) |
void |
or(RoaringBitmap32 other) |
static RoaringBitmap32 |
or(RoaringBitmap32 x1,
RoaringBitmap32 x2) |
long |
rangeCardinality(long start,
long end) |
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 long rangeCardinality(long start, long end)
public int last()
public RoaringBitmap32 clone()
public void serialize(DataOutput out) throws IOException
IOException
public void deserialize(DataInput in) throws IOException
IOException
public void clear()
public byte[] serialize()
public void deserialize(byte[] rbmBytes) throws IOException
IOException
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–2024 The Apache Software Foundation. All rights reserved.