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(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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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)
Copyright © 2017. All rights reserved.