Package org.apache.solr.search
Interface DocIterator
-
- All Superinterfaces:
DocIterationInfo,Iterator<Integer>
public interface DocIterator extends Iterator<Integer>, DocIterationInfo
Simple Iterator of document Ids which may include score information.The order of the documents is determined by the context in which the DocIterator instance was retrieved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intnextDoc()Returns the next document id ifhasNext()==trueThis method is equivalent tonext(), but avoids the creation of an Integer Object.-
Methods inherited from interface org.apache.solr.search.DocIterationInfo
originalScore, score
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
nextDoc
int nextDoc()
Returns the next document id ifhasNext()==trueThis method is equivalent tonext(), but avoids the creation of an Integer Object.- See Also:
Iterator.next()
-
-