use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class FloatIndex method atMost.
public Selection atMost(float value) {
Selection selection = new BitmapBackedSelection();
Float2ObjectSortedMap<IntArrayList> head = // we add 1 to get values equal
index.headMap(value + 0.000001f);
// to the arg
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 TimeFilters method isNotEqualTo.
default Selection isNotEqualTo(LocalTime value) {
Selection results = new BitmapBackedSelection();
int packedLocalTime = PackedLocalTime.pack(value);
for (int i = 0; i < size(); i++) {
if (packedLocalTime != getIntInternal(i)) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class ShortDictionaryMap method selectIsIn.
@Override
public Selection selectIsIn(String... strings) {
ShortOpenHashSet keys = new ShortOpenHashSet(strings.length);
for (String string : strings) {
short key = getKeyForValue(string);
if (key != DEFAULT_RETURN_VALUE) {
keys.add(key);
}
}
Selection results = new BitmapBackedSelection();
for (int i = 0; i < values.size(); i++) {
if (keys.contains(values.getShort(i))) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class ByteDictionaryMap method isEqualTo.
@Override
public Selection isEqualTo(String string) {
Selection results = new BitmapBackedSelection();
byte key = getKeyForValue(string);
addValuesToSelection(results, key);
return results;
}
use of tech.tablesaw.selection.BitmapBackedSelection in project symja_android_library by axkr.
the class IntDictionaryMap method selectIsIn.
@Override
public Selection selectIsIn(String... strings) {
IntOpenHashSet keys = new IntOpenHashSet(strings.length);
for (String string : strings) {
int key = getKeyForValue(string);
if (key != DEFAULT_RETURN_VALUE) {
keys.add(key);
}
}
Selection results = new BitmapBackedSelection();
for (int i = 0; i < values.size(); i++) {
if (keys.contains(values.getInt(i))) {
results.add(i);
}
}
return results;
}
Aggregations