trivial fixes to javadocs, no functional change

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@180014 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2005-06-04 19:17:51 +00:00
parent c636897dc4
commit 4114147edd
2 changed files with 42 additions and 42 deletions

View File

@ -344,8 +344,8 @@ public abstract class IndexReader {
public abstract int numDocs(); public abstract int numDocs();
/** Returns one greater than the largest possible document number. /** Returns one greater than the largest possible document number.
This may be used to, e.g., determine how big to allocate an array which * This may be used to, e.g., determine how big to allocate an array which
will have an element for every document number in an index. * will have an element for every document number in an index.
*/ */
public abstract int maxDoc(); public abstract int maxDoc();
@ -406,16 +406,15 @@ public abstract class IndexReader {
setNorm(doc, field, Similarity.encodeNorm(value)); setNorm(doc, field, Similarity.encodeNorm(value));
} }
/** Returns an enumeration of all the terms in the index. /** Returns an enumeration of all the terms in the index.
The enumeration is ordered by Term.compareTo(). Each term * The enumeration is ordered by Term.compareTo(). Each term
is greater than all that precede it in the enumeration. * is greater than all that precede it in the enumeration.
*/ */
public abstract TermEnum terms() throws IOException; public abstract TermEnum terms() throws IOException;
/** Returns an enumeration of all terms after a given term. /** Returns an enumeration of all terms after a given term.
The enumeration is ordered by Term.compareTo(). Each term * The enumeration is ordered by Term.compareTo(). Each term
is greater than all that precede it in the enumeration. * is greater than all that precede it in the enumeration.
*/ */
public abstract TermEnum terms(Term t) throws IOException; public abstract TermEnum terms(Term t) throws IOException;
@ -423,14 +422,14 @@ public abstract class IndexReader {
public abstract int docFreq(Term t) throws IOException; public abstract int docFreq(Term t) throws IOException;
/** Returns an enumeration of all the documents which contain /** Returns an enumeration of all the documents which contain
<code>term</code>. For each document, the document number, the frequency of * <code>term</code>. For each document, the document number, the frequency of
the term in that document is also provided, for use in search scoring. * the term in that document is also provided, for use in search scoring.
Thus, this method implements the mapping: * Thus, this method implements the mapping:
<p><ul> * <p><ul>
Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq&gt;<sup>*</sup> * Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq&gt;<sup>*</sup>
</ul> * </ul>
<p>The enumeration is ordered by document number. Each document number * <p>The enumeration is ordered by document number. Each document number
is greater than all that precede it in the enumeration. * is greater than all that precede it in the enumeration.
*/ */
public TermDocs termDocs(Term term) throws IOException { public TermDocs termDocs(Term term) throws IOException {
TermDocs termDocs = termDocs(); TermDocs termDocs = termDocs();
@ -442,20 +441,20 @@ public abstract class IndexReader {
public abstract TermDocs termDocs() throws IOException; public abstract TermDocs termDocs() throws IOException;
/** Returns an enumeration of all the documents which contain /** Returns an enumeration of all the documents which contain
<code>term</code>. For each document, in addition to the document number * <code>term</code>. For each document, in addition to the document number
and frequency of the term in that document, a list of all of the ordinal * and frequency of the term in that document, a list of all of the ordinal
positions of the term in the document is available. Thus, this method * positions of the term in the document is available. Thus, this method
implements the mapping: * implements the mapping:
*
<p><ul> * <p><ul>
Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq, * Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq,
&lt;pos<sub>1</sub>, pos<sub>2</sub>, ... * &lt;pos<sub>1</sub>, pos<sub>2</sub>, ...
pos<sub>freq-1</sub>&gt; * pos<sub>freq-1</sub>&gt;
&gt;<sup>*</sup> * &gt;<sup>*</sup>
</ul> * </ul>
<p> This positional information faciliates phrase and proximity searching. * <p> This positional information faciliates phrase and proximity searching.
<p>The enumeration is ordered by document number. Each document number is * <p>The enumeration is ordered by document number. Each document number is
greater than all that precede it in the enumeration. * greater than all that precede it in the enumeration.
*/ */
public TermPositions termPositions(Term term) throws IOException { public TermPositions termPositions(Term term) throws IOException {
TermPositions termPositions = termPositions(); TermPositions termPositions = termPositions();
@ -494,11 +493,11 @@ public abstract class IndexReader {
} }
/** Deletes the document numbered <code>docNum</code>. Once a document is /** Deletes the document numbered <code>docNum</code>. Once a document is
deleted it will not appear in TermDocs or TermPostitions enumerations. * deleted it will not appear in TermDocs or TermPostitions enumerations.
Attempts to read its field with the {@link #document} * Attempts to read its field with the {@link #document}
method will result in an error. The presence of this document may still be * method will result in an error. The presence of this document may still be
reflected in the {@link #docFreq} statistic, though * reflected in the {@link #docFreq} statistic, though
this will be corrected eventually as the index is further modified. * this will be corrected eventually as the index is further modified.
*/ */
public final synchronized void delete(int docNum) throws IOException { public final synchronized void delete(int docNum) throws IOException {
if(directoryOwner) if(directoryOwner)
@ -513,12 +512,13 @@ public abstract class IndexReader {
protected abstract void doDelete(int docNum) throws IOException; protected abstract void doDelete(int docNum) throws IOException;
/** Deletes all documents containing <code>term</code>. /** Deletes all documents containing <code>term</code>.
This is useful if one uses a document field to hold a unique ID string for * This is useful if one uses a document field to hold a unique ID string for
the document. Then to delete such a document, one merely constructs a * the document. Then to delete such a document, one merely constructs a
term with the appropriate field and the unique ID string as its text and * term with the appropriate field and the unique ID string as its text and
passes it to this method. Returns the number of documents deleted. * passes it to this method.
See {@link #delete(int)} for information about when this deletion will * See {@link #delete(int)} for information about when this deletion will
become effective. * become effective.
* @return the number of documents deleted
*/ */
public final int delete(Term term) throws IOException { public final int delete(Term term) throws IOException {
TermDocs docs = termDocs(term); TermDocs docs = termDocs(term);

View File

@ -446,7 +446,7 @@ public class IndexWriter {
/** /**
* Adds a document to this index. If the document contains more than * Adds a document to this index. If the document contains more than
* {@link #maxFieldLength} terms for a given field, the remainder are * {@link #setMaxFieldLength(int)} terms for a given field, the remainder are
* discarded. * discarded.
*/ */
public void addDocument(Document doc) throws IOException { public void addDocument(Document doc) throws IOException {
@ -456,7 +456,7 @@ public class IndexWriter {
/** /**
* Adds a document to this index, using the provided analyzer instead of the * Adds a document to this index, using the provided analyzer instead of the
* value of {@link #getAnalyzer()}. If the document contains more than * value of {@link #getAnalyzer()}. If the document contains more than
* {@link #maxFieldLength} terms for a given field, the remainder are * {@link #setMaxFieldLength(int)} terms for a given field, the remainder are
* discarded. * discarded.
*/ */
public void addDocument(Document doc, Analyzer analyzer) throws IOException { public void addDocument(Document doc, Analyzer analyzer) throws IOException {