@Override
        public boolean nextDocument(int docId) {
            while (currentIndex < entries.length && entries[currentIndex].docId <= docId) {
                ++currentIndex;
            }
            if (currentIndex == entries.length) {
                return false;
            }
            Entry entry = entries[currentIndex];
            currentDocId = entry.docId;
            currentIntervals = entry.intervals;
            currentIntervalIndex = 0;
            return true;
        }
@author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a>
@author bjorncs
predicate-search/src/test/java/com/yahoo/search/predicate/index/PredicateSearchTest.java