use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class LongIndex method atMost.
public Selection atMost(long value) {
Selection selection = new BitmapBackedSelection();
Long2ObjectSortedMap<IntArrayList> head = // we add 1 to get values equal to the arg
index.headMap(value + 1);
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 ByteIndex method atLeast.
public Selection atLeast(byte value) {
Selection selection = new BitmapBackedSelection();
Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap(value);
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 ByteIndex method greaterThan.
public Selection greaterThan(byte value) {
Selection selection = new BitmapBackedSelection();
Byte2ObjectSortedMap<IntArrayList> tail = index.tailMap((byte) (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 FloatIndex method get.
/**
* Returns a bitmap containing row numbers of all cells matching the given int
*
* @param value This is a 'key' from the index perspective, meaning it is a value from the
* standpoint of the column
*/
public Selection get(float value) {
Selection selection = new BitmapBackedSelection();
IntArrayList list = index.get(value);
if (list != null) {
addAllToSelection(list, selection);
}
return selection;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class FloatIndex method atLeast.
public Selection atLeast(float value) {
Selection selection = new BitmapBackedSelection();
Float2ObjectSortedMap<IntArrayList> tail = index.tailMap(value);
for (IntArrayList keys : tail.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
Aggregations