BitmapBackedSelection
public interface Selection
extends it.unimi.dsi.fastutil.ints.IntIterable
Modifier and Type | Method | 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) |
Returns the intersection of the receiver and
otherSelection , after 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) |
|
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.
|
boolean |
isEmpty() |
|
Selection |
or(Selection otherSelection) |
Returns the union of the receiver and
otherSelection , after updating the receiver |
Selection |
removeRange(long start,
long end) |
|
static Selection |
selectNRowsAtRandom(int n,
int max) |
Returns an randomly generated selection of size N where Max is the largest possible value
|
int |
size() |
|
int[] |
toArray() |
|
static Selection |
with(int... rows) |
|
static Selection |
withoutRange(int totalRangeStart,
int totalRangeEnd,
int excludedRangeStart,
int excludedRangeEnd) |
|
static Selection |
withRange(int start,
int end) |
spliterator
int[] toArray()
Selection add(int... ints)
Selection addRange(int start, int end)
start
- inclusive beginning of rangeend
- exclusive ending of rangeSelection removeRange(long start, long end)
int size()
Selection and(Selection otherSelection)
otherSelection
, after updating the receiverSelection or(Selection otherSelection)
otherSelection
, after updating the receiverSelection andNot(Selection otherSelection)
otherSelection
, after updating the receiverboolean isEmpty()
Selection clear()
boolean contains(int i)
int get(int i)
Selection flip(int rangeStart, int rangeEnd)
static Selection selectNRowsAtRandom(int n, int max)
static Selection with(int... rows)
static Selection withRange(int start, int end)
static Selection withoutRange(int totalRangeStart, int totalRangeEnd, int excludedRangeStart, int excludedRangeEnd)
Copyright © 2018. All rights reserved.