19 using Lucene.Net.Documents;
22 namespace Lucene.Net.Index
36 this.storedFieldsWriter = storedFieldsWriter;
37 this.docState = docState;
41 public void StartDocument()
49 doc.docID = docState.docID;
57 doc = storedFieldsWriter.GetPerDoc();
58 doc.docID = docState.docID;
59 localFieldsWriter.SetFieldsStream(doc.fdt);
60 System.Diagnostics.Debug.Assert(doc.numStoredFields == 0,
"doc.numStoredFields=" + doc.numStoredFields);
61 System.Diagnostics.Debug.Assert(0 == doc.fdt.Length);
62 System.Diagnostics.Debug.Assert(0 == doc.fdt.FilePointer);
65 localFieldsWriter.WriteField(fieldInfo, field);
66 System.Diagnostics.Debug.Assert(docState.TestPoint(
"StoredFieldsWriterPerThread.processFields.writeField"));
67 doc.numStoredFields++;