package private method added that helps to get unique

document numbers and that should not upset anybody


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christoph Goller 2004-06-24 08:05:55 +00:00
parent 2ebb5e0ade
commit 5426ab1212
1 changed files with 4 additions and 0 deletions

View File

@ -311,6 +311,10 @@ public class IndexWriter {
}
}
final int getSegmentsCounter(){
return segmentInfos.counter;
}
private final synchronized String newSegmentName() {
return "_" + Integer.toString(segmentInfos.counter++, Character.MAX_RADIX);
}