Constructor and Description |
---|
BitmapBackedSelection() |
BitmapBackedSelection(int size)
Returns a selection initialized from 0 to the given size, which cane be used for
queries that exclude certain items, by first selecting the items to exclude,
then flipping the bits.
|
BitmapBackedSelection(org.roaringbitmap.RoaringBitmap bitmap) |
Modifier and Type | Method and Description |
---|---|
Selection |
add(int... ints)
Adds the given integers to the Selection if it is not already present, and does nothing otherwise
|
Selection |
addRange(int start,
int end)
Adds to the current bitmap all integers in [rangeStart,rangeEnd)
|
Selection |
and(Selection otherSelection)
Intersects the receiver and
otherSelection , updating the receiver |
Selection |
andNot(Selection otherSelection)
Implements the set difference operation between the receiver and
otherSelection , after updating the receiver |
Selection |
clear() |
boolean |
contains(int i) |
boolean |
equals(Object o) |
Selection |
flip(int rangeStart,
int rangeEnd)
Returns a selection with the bits from this selection flipped over the given range
|
int |
get(int i)
Returns the value of the ith element.
|
int |
hashCode() |
boolean |
isEmpty() |
it.unimi.dsi.fastutil.ints.IntIterator |
iterator()
Returns a fastUtil intIterator that wraps a bitmap intIterator
|
Selection |
or(Selection otherSelection)
Implements the union of the receiver and
otherSelection , updating the receiver |
Selection |
removeRange(long start,
long end) |
int |
size() |
int[] |
toArray() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
public BitmapBackedSelection(int size)
size
- The size The end point, exclusivepublic BitmapBackedSelection(org.roaringbitmap.RoaringBitmap bitmap)
public BitmapBackedSelection()
public Selection removeRange(long start, long end)
removeRange
in interface Selection
public Selection flip(int rangeStart, int rangeEnd)
Selection
public Selection add(int... ints)
Selection
public Selection and(Selection otherSelection)
otherSelection
, updating the receiverpublic Selection or(Selection otherSelection)
otherSelection
, updating the receiverpublic Selection andNot(Selection otherSelection)
Selection
otherSelection
, after updating the receiverpublic Selection addRange(int start, int end)
public int get(int i)
Selection
Copyright © 2018. All rights reserved.