internal int numThreads = 1; // Number of threads that share this instance

        #endregion Fields

        #region Constructors

        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;
            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;
     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);
 }
        internal int numThreads = 1; // Number of threads that share this instance

        #endregion Fields

        #region Constructors

        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);
        }