use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class StringColumn method isNotIn.
@Override
public Selection isNotIn(Collection<String> strings) {
Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(strings));
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class StringColumn method isNotIn.
@Override
public Selection isNotIn(String... strings) {
Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(strings));
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class TextColumn method isIn.
@Override
public Selection isIn(Collection<String> strings) {
Set<String> stringSet = Sets.newHashSet(strings);
Selection results = new BitmapBackedSelection();
for (int i = 0; i < size(); i++) {
if (stringSet.contains(values.get(i))) {
results.add(i);
}
}
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class TextColumn method isNotIn.
@Override
public Selection isNotIn(String... strings) {
Selection results = new BitmapBackedSelection();
results.addRange(0, size());
results.andNot(isIn(strings));
return results;
}
use of tech.tablesaw.selection.Selection in project symja_android_library by axkr.
the class TextColumn method isIn.
@Override
public Selection isIn(String... strings) {
Set<String> stringSet = Sets.newHashSet(strings);
Selection results = new BitmapBackedSelection();
for (int i = 0; i < size(); i++) {
if (stringSet.contains(values.get(i))) {
results.add(i);
}
}
return results;
}
Aggregations