|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TermPositions
TermPositions provides an interface for enumerating the <document, frequency, <position>* > tuples for a term.
The document and frequency are the same as for a TermDocs. The positions portion lists the ordinal positions of each occurrence of a term in a document.
IndexReader.termPositions()
Method Summary | |
---|---|
int |
nextPosition()
Returns next position in the current document. |
Methods inherited from interface org.apache.lucene.index.TermDocs |
---|
close, doc, freq, next, read, seek, seek, skipTo |
Method Detail |
---|
int nextPosition() throws java.io.IOException
TermDocs.freq()
times
without calling TermDocs.next()
This is
invalid until TermDocs.next()
is called for
the first time.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |