@Override public boolean endOfPostings() { return posting.endOfPostings(); }
/** Returns the minimum docid of the current postings in the array of IterablePostings * @return minimum docid, or -1 if all postings have ended. */ public static int selectMinimumDocId(final IterablePosting postingListArray[]) { int docid = Integer.MAX_VALUE; for (IterablePosting postingList: postingListArray) if (!postingList.endOfPostings() && docid > postingList.getId()) docid = postingList.getId(); if (docid == Integer.MAX_VALUE) docid = -1; return docid; }
/** Returns the minimum docid of the current postings in the array of IterablePostings * @return minimum docid, or -1 if all postings have ended. */ public static int selectMinimumDocId(final IterablePosting postingListArray[]) { int docid = Integer.MAX_VALUE; for (IterablePosting postingList: postingListArray) if (!postingList.endOfPostings() && docid > postingList.getId()) docid = postingList.getId(); if (docid == Integer.MAX_VALUE) docid = -1; return docid; }
posting.next(); while (!posting.endOfPostings()) { currentPostingID=posting.getId();
while (!postings.endOfPostings()) { for (; i < chunkSize && !postings.endOfPostings(); i++) {//for each chunk
while (!postings.endOfPostings()) { for (; i < chunkSize && !postings.endOfPostings(); i++) {//for each chunk