lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gol...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index IndexWriter.java
Date Thu, 24 Jun 2004 08:05:55 GMT
goller      2004/06/24 01:05:55

  Modified:    src/java/org/apache/lucene/index IndexWriter.java
  Log:
  package private method added that helps to get unique
  document numbers and that should not upset anybody
  
  Revision  Changes    Path
  1.32      +4 -0      jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java
  
  Index: IndexWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- IndexWriter.java	9 Jun 2004 11:28:46 -0000	1.31
  +++ IndexWriter.java	24 Jun 2004 08:05:55 -0000	1.32
  @@ -311,6 +311,10 @@
       }
     }
   
  +  final int getSegmentsCounter(){
  +    return segmentInfos.counter;
  +  }
  +  
     private final synchronized String newSegmentName() {
       return "_" + Integer.toString(segmentInfos.counter++, Character.MAX_RADIX);
     }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message