lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r783747 - /lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java
Date Thu, 11 Jun 2009 12:46:41 GMT
Author: uschindler
Date: Thu Jun 11 12:46:41 2009
New Revision: 783747

URL: http://svn.apache.org/viewvc?rev=783747&view=rev
Log:
LUCENE-1592: deprecate TermsEnum.skipTo()

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java?rev=783747&r1=783746&r2=783747&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/TermEnum.java Thu Jun 11 12:46:41 2009
@@ -37,8 +37,6 @@
   /** 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 @@
    * </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 {



Mime
View raw message