mirror of https://github.com/apache/lucene.git
- Fixed class Javadoc (spelling, missing words), reformatted a bit.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bcc042f5a
commit
bd8c341d87
|
@ -58,18 +58,23 @@ import java.io.IOException;
|
|||
import org.apache.lucene.document.Document;
|
||||
|
||||
|
||||
/** TermPositions provides an interface for enumerating the <document,
|
||||
frequency, <position>* > tuples for a term. <p> The document and
|
||||
frequency are as for a TermDocs. The positions portion lists the ordinal
|
||||
positions of each occurence of a term in a document.
|
||||
@see IndexReader#termPositions
|
||||
*/
|
||||
/**
|
||||
* TermPositions provides an interface for enumerating the <document,
|
||||
* frequency, <position>* > tuples for a term. <p> 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.
|
||||
*
|
||||
* @see IndexReader#termPositions
|
||||
*/
|
||||
|
||||
public interface TermPositions extends TermDocs {
|
||||
/** Returns next position in the current document. It is an error to call
|
||||
this more than {@link #freq()} times
|
||||
without calling {@link #next()}<p> This is
|
||||
invalid until {@link #next()} is called for
|
||||
the first time.*/
|
||||
int nextPosition() throws IOException;
|
||||
}
|
||||
public interface TermPositions
|
||||
extends TermDocs
|
||||
{
|
||||
/** Returns next position in the current document. It is an error to call
|
||||
this more than {@link #freq()} times
|
||||
without calling {@link #next()}<p> This is
|
||||
invalid until {@link #next()} is called for
|
||||
the first time.
|
||||
*/
|
||||
int nextPosition() throws IOException;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue