lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r188865 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
Date Tue, 07 Jun 2005 20:55:19 GMT
Author: dnaber
Date: Tue Jun  7 13:55:19 2005
New Revision: 188865

URL: http://svn.apache.org/viewcvs?rev=188865&view=rev
Log:
adding getVersion()

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/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java?rev=188865&r1=188864&r2=188865&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 Jun  7 13:55:19
2005
@@ -241,6 +241,13 @@
   public static long getCurrentVersion(Directory directory) throws IOException {
     return SegmentInfos.readCurrentVersion(directory);
   }
+  
+  /**
+   * Version number when this IndexReader was opened.
+   */
+  public long getVersion() {
+    return segmentInfos.getVersion();
+  }
 
   /**
    * Check whether this IndexReader still works on a current version of the index.



Mime
View raw message