internal override void FinishDocument() { if (Debugging.AssertsEnabled) { Debugging.Assert(docWriter.TestPoint("StoredFieldsWriter.finishDocument start")); } InitFieldsWriter(IOContext.DEFAULT); Fill(docState.docID); if (fieldsWriter != null && numStoredFields > 0) { fieldsWriter.StartDocument(numStoredFields); for (int i = 0; i < numStoredFields; i++) { fieldsWriter.WriteField(fieldInfos[i], storedFields[i]); } fieldsWriter.FinishDocument(); lastDocID++; } Reset(); if (Debugging.AssertsEnabled) { Debugging.Assert(docWriter.TestPoint("StoredFieldsWriter.finishDocument end")); } }
internal override void FinishDocument(TermsHash termsHash) { Debug.Assert(docWriter.TestPoint("TermVectorsTermsWriter.finishDocument start")); if (!hasVectors) { return; } 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(); Debug.Assert(lastDocID == docState.docID, "lastDocID=" + lastDocID + " docState.docID=" + docState.docID); lastDocID++; termsHash.Reset(); Reset(); Debug.Assert(docWriter.TestPoint("TermVectorsTermsWriter.finishDocument end")); }
public override void FinishDocument(TermsHash termsHash) { Debug.Assert(DocWriter.TestPoint("TermVectorsTermsWriter.finishDocument start")); if (!HasVectors) { return; } 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(); Debug.Assert(LastDocID == DocState.DocID, "lastDocID=" + LastDocID + " docState.docID=" + DocState.DocID); LastDocID++; termsHash.Reset(); Reset(); Debug.Assert(DocWriter.TestPoint("TermVectorsTermsWriter.finishDocument end")); }
internal override void FinishDocument() { // LUCENENET: .NET doesn't support asserts in release mode if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) { docWriter.TestPoint("StoredFieldsWriter.finishDocument start"); } InitFieldsWriter(IOContext.DEFAULT); Fill(docState.docID); if (fieldsWriter != null && numStoredFields > 0) { fieldsWriter.StartDocument(numStoredFields); for (int i = 0; i < numStoredFields; i++) { fieldsWriter.WriteField(fieldInfos[i], storedFields[i]); } fieldsWriter.FinishDocument(); lastDocID++; } Reset(); // LUCENENET: .NET doesn't support asserts in release mode if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) { docWriter.TestPoint("StoredFieldsWriter.finishDocument end"); } }
public override void FinishDocument() { Debug.Assert(DocWriter.TestPoint("StoredFieldsWriter.finishDocument start")); InitFieldsWriter(IOContext.DEFAULT); Fill(DocState.DocID); if (FieldsWriter != null && NumStoredFields > 0) { FieldsWriter.StartDocument(NumStoredFields); for (int i = 0; i < NumStoredFields; i++) { FieldsWriter.WriteField(FieldInfos[i], StoredFields[i]); } FieldsWriter.FinishDocument(); LastDocID++; } Reset(); Debug.Assert(DocWriter.TestPoint("StoredFieldsWriter.finishDocument end")); }
internal override void FinishDocument(TermsHash termsHash) { // LUCENENET: .NET doesn't support asserts in release mode if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) { docWriter.TestPoint("TermVectorsTermsWriter.finishDocument start"); } if (!hasVectors) { return; } 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(); Debug.Assert(lastDocID == docState.docID, "lastDocID=" + lastDocID + " docState.docID=" + docState.docID); lastDocID++; termsHash.Reset(); Reset(); // LUCENENET: .NET doesn't support asserts in release mode if (Lucene.Net.Diagnostics.Debugging.AssertsEnabled) { docWriter.TestPoint("TermVectorsTermsWriter.finishDocument end"); } }
// Only called by asserts public virtual bool TestPoint(string name) { return(docWriter.TestPoint(name)); }