public interface Selection extends it.unimi.dsi.fastutil.ints.IntIterable, Filter
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)
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 |
default Selection |
apply(Column columnBeingFiltered)
Returns a selection created by applying this filter (and any optional params added in extending classes) to the
given column
|
default Selection |
apply(Table relation) |
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
|
static int[] |
generateUniformBitmap(int N,
int Max)
Returns an randomly generated array of ints of size N where Max is the largest possible value
|
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) |
int |
size() |
int[] |
toArray() |
org.roaringbitmap.RoaringBitmap |
toBitmapInternal()
Returns a bitmap that represents the state of this selection
|
static Selection |
with(int... rows) |
static Selection |
withoutRange(int totalRangeStart,
int totalRangeEnd,
int excludedRangeStart,
int excludedRangeEnd) |
static Selection |
withRange(int start,
int end) |
spliterator
static Selection with(int... rows)
static Selection withRange(int start, int end)
static Selection withoutRange(int totalRangeStart, int totalRangeEnd, int excludedRangeStart, int excludedRangeEnd)
int[] toArray()
org.roaringbitmap.RoaringBitmap toBitmapInternal()
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)
default Selection apply(Column columnBeingFiltered)
Filter
static int[] generateUniformBitmap(int N, int Max)
static Selection selectNRowsAtRandom(int n, int max)
Copyright © 2018. All rights reserved.