Constructor and Description |
---|
BitmapBackedSelection() |
BitmapBackedSelection(org.roaringbitmap.RoaringBitmap bitmap) |
Modifier and Type | Method and Description |
---|---|
void |
add(int i)
Adds the given integer to the Selection if it is not already present, and does nothing otherwise
|
void |
addRange(int start,
int end)
Adds to the current bitmap all integers in [rangeStart,rangeEnd)
|
void |
and(Selection otherSelection)
Intersects the receiver and
otherSelection , updating the receiver |
void |
andNot(Selection otherSelection)
Implements the set difference operation between the receiver and
otherSelection , updating the receiver |
void |
clear() |
boolean |
contains(int i) |
boolean |
equals(java.lang.Object o) |
int |
get(int i) |
int |
hashCode() |
boolean |
isEmpty() |
it.unimi.dsi.fastutil.ints.IntIterator |
iterator() |
void |
or(Selection otherSelection)
Implements the union of the receiver and
otherSelection , updating the receiver |
int |
size() |
int[] |
toArray() |
org.roaringbitmap.RoaringBitmap |
toBitmap()
Returns an IntArrayList containing the ints in this selection
|
it.unimi.dsi.fastutil.ints.IntArrayList |
toIntArrayList() |
public BitmapBackedSelection(org.roaringbitmap.RoaringBitmap bitmap)
public BitmapBackedSelection()
public void add(int i)
Selection
public org.roaringbitmap.RoaringBitmap toBitmap()
Selection
public it.unimi.dsi.fastutil.ints.IntArrayList toIntArrayList()
toIntArrayList
in interface Selection
public void and(Selection otherSelection)
otherSelection
, updating the receiverpublic void or(Selection otherSelection)
otherSelection
, updating the receiverpublic void andNot(Selection otherSelection)
otherSelection
, updating the receiverpublic void addRange(int start, int end)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public it.unimi.dsi.fastutil.ints.IntIterator iterator()
iterator
in interface it.unimi.dsi.fastutil.ints.IntIterable
iterator
in interface java.lang.Iterable<java.lang.Integer>