text: public override int NextDoc(){if (idx >= size){value = null;return doc = DocIdSetIterator.NO_MORE_DOCS;}doc = (int)docs.Get(idx);++idx;while (idx < size && docs.Get(idx) == doc){++idx;}if (!docsWithField.Get((int)(idx - 1))){value = null;}else{value = values.Get(idx - 1);}return doc;}