private int getNextId(int fromId, int k, byte[] iteratorsPerConjunction) {
            int id = fromId >>> 1;
            int nDocuments = iteratorsPerConjunction.length;
            while (id < nDocuments && iteratorsPerConjunction[id] < k) {
                ++id;
            }
            return id == nDocuments ? -1 : ((id << 1) | 1);

        }
Retrieves a list of hits for the given query.

@param query Specifies the boolean variables that are true.
@return List of hits
predicate-search/src/main/java/com/yahoo/search/predicate/index/conjunction/ConjunctionIndex.java