use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class ShortDictionaryMap method isEqualTo.
@Override
public Selection isEqualTo(String string) {
Selection results = new BitmapBackedSelection();
short key = getKeyForValue(string);
addValuesToSelection(results, key);
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class FloatIndex method lessThan.
public Selection lessThan(float value) {
Selection selection = new BitmapBackedSelection();
Float2ObjectSortedMap<IntArrayList> head = index.headMap(value);
for (IntArrayList keys : head.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class IntIndex method greaterThan.
public Selection greaterThan(int value) {
Selection selection = new BitmapBackedSelection();
Int2ObjectSortedMap<IntArrayList> tail = index.tailMap(value + 1);
for (IntArrayList keys : tail.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class ShortIndex method atMost.
public Selection atMost(short value) {
Selection selection = new BitmapBackedSelection();
Short2ObjectSortedMap<IntArrayList> head = // we add 1 to get values equal to the arg
index.headMap((short) (value + 1));
for (IntArrayList keys : head.values()) {
addAllToSelection(keys, selection);
}
return selection;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class ShortIndex 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(short value) {
Selection selection = new BitmapBackedSelection();
IntArrayList list = index.get(value);
if (list != null) {
addAllToSelection(list, selection);
}
return selection;
}
Aggregations