use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class ShortIndex method lessThan.
public Selection lessThan(short value) {
Selection selection = new BitmapBackedSelection();
Short2ObjectSortedMap<IntArrayList> head = // we add 1 to get values equal to the arg
index.headMap(value);
for (IntArrayList keys : head.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class ShortIndex method greaterThan.
public Selection greaterThan(short value) {
Selection selection = new BitmapBackedSelection();
Short2ObjectSortedMap<IntArrayList> tail = index.tailMap((short) (value + 1));
for (IntArrayList keys : tail.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class DoubleIndex method greaterThan.
public Selection greaterThan(double value) {
Selection selection = new BitmapBackedSelection();
Double2ObjectSortedMap<IntArrayList> tail = index.tailMap(value + 0.000001);
for (IntArrayList keys : tail.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class LongIndex method greaterThan.
public Selection greaterThan(long value) {
Selection selection = new BitmapBackedSelection();
Long2ObjectSortedMap<IntArrayList> tail = index.tailMap(value + 1);
for (IntArrayList keys : tail.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class LongIndex method get.
/**
* Returns a bitmap containing row numbers of all cells matching the given long
*
* @param value This is a 'key' from the index perspective, meaning it is a value from the
* standpoint of the column
*/
public Selection get(long value) {
Selection selection = new BitmapBackedSelection();
IntArrayList list = index.get(value);
if (list != null) {
addAllToSelection(list, selection);
}
return selection;
}
Aggregations