/** Fills in no-term-vectors for all docs we haven't seen * since the last doc that had term vectors. */ void fill(int docID) throws IOException { while(lastDocID < docID) { writer.startDocument(0); writer.finishDocument(); lastDocID++; } }
@Override void finishDocument() throws IOException { if (!hasVectors) { return; } // Fields in term vectors are UTF16 sorted: ArrayUtil.introSort(perFields, 0, numVectorFields); initTermVectorsWriter(); fill(docState.docID); // Append term vectors to the real outputs: writer.startDocument(numVectorFields); for (int i = 0; i < numVectorFields; i++) { perFields[i].finishDocument(); } writer.finishDocument(); assert lastDocID == docState.docID: "lastDocID=" + lastDocID + " docState.docID=" + docState.docID; lastDocID++; super.reset(); resetFields(); }
if (vectors == null) { startDocument(0); finishDocument(); return; finishDocument();
if (vectors == null) { writer.startDocument(0); writer.finishDocument(); return; writer.finishDocument();
/** Fills in no-term-vectors for all docs we haven't seen * since the last doc that had term vectors. */ void fill(int docID) throws IOException { while(lastDocID < docID) { writer.startDocument(0); writer.finishDocument(); lastDocID++; } }
/** Fills in no-term-vectors for all docs we haven't seen * since the last doc that had term vectors. */ void fill(int docID) throws IOException { while(lastDocID < docID) { writer.startDocument(0); writer.finishDocument(); lastDocID++; } }
/** Fills in no-term-vectors for all docs we haven't seen * since the last doc that had term vectors. */ void fill(int docID) throws IOException { while(lastDocID < docID) { writer.startDocument(0); writer.finishDocument(); lastDocID++; } }
@Override void finishDocument() throws IOException { if (!hasVectors) { return; } // Fields in term vectors are UTF16 sorted: ArrayUtil.introSort(perFields, 0, numVectorFields); initTermVectorsWriter(); fill(docState.docID); // Append term vectors to the real outputs: writer.startDocument(numVectorFields); for (int i = 0; i < numVectorFields; i++) { perFields[i].finishDocument(); } writer.finishDocument(); assert lastDocID == docState.docID: "lastDocID=" + lastDocID + " docState.docID=" + docState.docID; lastDocID++; super.reset(); resetFields(); }
@Override void finishDocument() throws IOException { if (!hasVectors) { return; } // Fields in term vectors are UTF16 sorted: ArrayUtil.introSort(perFields, 0, numVectorFields); initTermVectorsWriter(); fill(docState.docID); // Append term vectors to the real outputs: writer.startDocument(numVectorFields); for (int i = 0; i < numVectorFields; i++) { perFields[i].finishDocument(); } writer.finishDocument(); assert lastDocID == docState.docID: "lastDocID=" + lastDocID + " docState.docID=" + docState.docID; lastDocID++; super.reset(); resetFields(); }
@Override void finishDocument() throws IOException { if (!hasVectors) { return; } // Fields in term vectors are UTF16 sorted: ArrayUtil.introSort(perFields, 0, numVectorFields); initTermVectorsWriter(); fill(docState.docID); // Append term vectors to the real outputs: writer.startDocument(numVectorFields); for (int i = 0; i < numVectorFields; i++) { perFields[i].finishDocument(); } writer.finishDocument(); assert lastDocID == docState.docID: "lastDocID=" + lastDocID + " docState.docID=" + docState.docID; lastDocID++; super.reset(); resetFields(); }
if (vectors == null) { startDocument(0); finishDocument(); return; finishDocument();
if (vectors == null) { startDocument(0); finishDocument(); return; finishDocument();
if (vectors == null) { startDocument(0); finishDocument(); return; finishDocument();
if (vectors == null) { writer.startDocument(0); writer.finishDocument(); return; writer.finishDocument();