Search in sources :

Example 1 with ByteIterator

use of it.unimi.dsi.fastutil.bytes.ByteIterator in project symja_android_library by axkr.

the class BooleanColumn method isEqualTo.

@Override
public Selection isEqualTo(BooleanColumn other) {
    Selection results = new BitmapBackedSelection();
    int i = 0;
    ByteIterator booleanIterator = other.byteIterator();
    for (byte next : data) {
        if (next == booleanIterator.nextByte()) {
            results.add(i);
        }
        i++;
    }
    return results;
}
Also used : ByteIterator(it.unimi.dsi.fastutil.bytes.ByteIterator) BitmapBackedSelection(tech.tablesaw.selection.BitmapBackedSelection) Selection(tech.tablesaw.selection.Selection) BitmapBackedSelection(tech.tablesaw.selection.BitmapBackedSelection)

Aggregations

ByteIterator (it.unimi.dsi.fastutil.bytes.ByteIterator)1 BitmapBackedSelection (tech.tablesaw.selection.BitmapBackedSelection)1 Selection (tech.tablesaw.selection.Selection)1