public boolean next(int conjunctionId) {
        if (index == length) return false;

        int candidate = currentConjunctionId;
        while (ConjunctionId.compare(conjunctionId, candidate) > 0 && ++index < length) {
            candidate = conjunctionIds[index];
        }
        currentConjunctionId = candidate;
        return ConjunctionId.compare(conjunctionId, candidate) <= 0;
    }
Conjunction id posting list iterator for a single feature/assignment (e.g. a=b).

@author bjorncs
predicate-search/src/main/java/com/yahoo/search/predicate/index/conjunction/ConjunctionIdIterator.java