Apache Lucene open-source search software
LUCENE-1592: deprecate TermsEnum.skipTo()
Uwe Schindlerfd63593d6620
diff --git a/src/java/org/apache/lucene/index/TermEnum.java b/src/java/org/apache/lucene/index/TermEnum.javaindex ed26a999854..735ee9cde69 100644--- a/src/java/org/apache/lucene/index/TermEnum.java+++ b/src/java/org/apache/lucene/index/TermEnum.java@@ -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 {