mirror of https://github.com/apache/lucene.git
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:
parent
2ebb5e0ade
commit
5426ab1212
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue