Esempio n. 1
0
 public DocumentsWriterThreadState(DocumentsWriter docWriter)
 {
     this.docWriter               = docWriter;
     docState                     = new DocumentsWriter.DocState();
     docState.maxFieldLength      = docWriter.maxFieldLength;
     docState.infoStream          = docWriter.infoStream;
     docState.similarity          = docWriter.similarity;
     docState.docWriter           = docWriter;
     docState.allowMinus1Position = docWriter.writer.GetAllowMinus1Position();
     consumer                     = docWriter.consumer.AddThread(this);
 }
		public DocumentsWriterThreadState(DocumentsWriter docWriter)
		{
			this.docWriter = docWriter;
			docState = new DocumentsWriter.DocState();
			docState.maxFieldLength = docWriter.maxFieldLength;
			docState.infoStream = docWriter.infoStream;
			docState.similarity = docWriter.similarity;
			docState.docWriter = docWriter;
			docState.allowMinus1Position = docWriter.writer.GetAllowMinus1Position();
			consumer = docWriter.consumer.AddThread(this);
		}