Modifier and Type | Method and Description |
---|---|
int |
nextDoc()
Returns the next document id if
hasNext()==true
This method is equivalent to next() , but avoids the creation
of an Integer Object. |
float |
score()
Returns the score for the document just returned by
nextDoc() |
forEachRemaining, hasNext, next, remove
int nextDoc()
hasNext()==true
This method is equivalent to next()
, but avoids the creation
of an Integer Object.Iterator.next()
float score()
nextDoc()
The value returned may be meaningless depending on the context in which the DocIterator instance was retrieved.
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.