LUCENE-1592: deprecate TermsEnum.skipTo()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@783747 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-06-11 12:46:41 +00:00
parent 2099947cdf
commit fd63593d66
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,6 @@ public abstract class TermEnum {
/** Closes the enumeration to further activity, freeing resources. */
public abstract void close() throws IOException;
// Term Vector support
/** Skips terms to the first beyond the current whose value is
* greater or equal to <i>target</i>. <p>Returns true iff there is such
* an entry. <p>Behaves as if written: <pre>
@ -52,6 +50,9 @@ public abstract class TermEnum {
* </pre>
* Some implementations *could* be considerably more efficient than a linear scan.
* Check the implementation to be sure.
* @deprecated This method is not performant and will be removed in Lucene 3.0.
* Use {@link IndexReader#terms(Term)} to create a new TermEnum positioned at a
* given term.
*/
public boolean skipTo(Term target) throws IOException {
do {