internal DocumentsWriterFlushControl(DocumentsWriter documentsWriter, LiveIndexWriterConfig config, BufferedUpdatesStream bufferedUpdatesStream) { this.infoStream = config.InfoStream; this.stallControl = new DocumentsWriterStallControl(); this.perThreadPool = documentsWriter.perThreadPool; this.flushPolicy = documentsWriter.flushPolicy; this.config = config; this.hardMaxBytesPerDWPT = config.RAMPerThreadHardLimitMB * 1024 * 1024; this.documentsWriter = documentsWriter; this.bufferedUpdatesStream = bufferedUpdatesStream; }
internal DocumentsWriterFlushControl(DocumentsWriter documentsWriter, LiveIndexWriterConfig config, BufferedUpdatesStream bufferedUpdatesStream) { this.InfoStream_Renamed = config.InfoStream; this.StallControl = new DocumentsWriterStallControl(); this.PerThreadPool = documentsWriter.PerThreadPool; this.FlushPolicy = documentsWriter.FlushPolicy; this.Config = config; this.HardMaxBytesPerDWPT = config.RAMPerThreadHardLimitMB * 1024 * 1024; this.DocumentsWriter = documentsWriter; this.BufferedUpdatesStream = bufferedUpdatesStream; }