public void finish(FieldInfos fis, int numDocs) throws IOException {if (!pendingDocs.isEmpty()) {flush();numDirtyChunks++; }if (numDocs != this.numDocs) {throw new RuntimeException("Wrote " + this.numDocs + " docs, finish called with numDocs=" + numDocs);}indexWriter.finish(numDocs, vectorsStream.getFilePointer());vectorsStream.writeVLong(numChunks);vectorsStream.writeVLong(numDirtyChunks);CodecUtil.writeFooter(vectorsStream);}

public void finish ( FieldInfos fis , int numDocs ) throws IOException { if ( ! pendingDocs . isEmpty ( ) ) { flush ( ) ; numDirtyChunks ++ ; } if ( numDocs != this . numDocs ) { throw new RuntimeException ( "Wrote " + this . numDocs + " docs, finish called with numDocs=" + numDocs ) ; } indexWriter . finish ( numDocs , vectorsStream . getFilePointer ( ) ) ; vectorsStream . writeVLong ( numChunks ) ; vectorsStream . writeVLong ( numDirtyChunks ) ; CodecUtil . writeFooter ( vectorsStream ) ; }
public override void Finish(FieldInfos fis, int numDocs){if (!(pendingDocs.Count == 0)){Flush();}if (numDocs != this.numDocs){throw new Exception("Wrote " + this.numDocs + " docs, finish called with numDocs=" + numDocs);}indexWriter.Finish(numDocs, vectorsStream.GetFilePointer());CodecUtil.WriteFooter(vectorsStream);}
