private class BoostSet.DocIter
extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
docKey |
(package private) boolean |
done |
(package private) String |
field |
(package private) TermEnum |
termEnum |
(package private) TermPositions |
termPositions |
| Constructor and Description |
|---|
DocIter(IndexReader indexReader,
String field)
Construct from an index reader
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
close()
Clean up
|
(package private) int |
docId()
Gets the Lucene document ID of the current document
|
(package private) boolean |
done()
Return true if there are no more documents to read
|
(package private) String |
key()
Gets the key of the current document
|
(package private) void |
next()
Advances to the next document in the index
|
private void |
readDocKey()
Fetch the current document key; update done
|
boolean done
String docKey
String field
TermPositions termPositions
TermEnum termEnum
DocIter(IndexReader indexReader,
String field)
throws IOException
IOExceptionboolean done()
String key()
int docId() throws IOException
IOExceptionvoid next() throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionprivate void readDocKey()