lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r890967 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
Date Tue, 15 Dec 2009 20:14:45 GMT
Author: mikemccand
Date: Tue Dec 15 20:14:45 2009
New Revision: 890967

URL: http://svn.apache.org/viewvc?rev=890967&view=rev
Log:
LUCENE-1609: restoring getTermInfosIndexDivisor (it's not deprecated in 2.9, but was removed
by accident)

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java?rev=890967&r1=890966&r2=890967&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java Tue Dec 15 20:14:45
2009
@@ -1165,4 +1165,13 @@
   public long getUniqueTermCount() throws IOException {
     throw new UnsupportedOperationException("this reader does not implement getUniqueTermCount()");
   }
+
+  /** For IndexReader implementations that use
+   *  TermInfosReader to read terms, this returns the
+   *  current indexDivisor as specified when the reader was
+   *  opened.
+   */
+  public int getTermInfosIndexDivisor() {
+    throw new UnsupportedOperationException("This reader does not support this method.");
+  }
 }



Mime
View raw message