text: public OneMerge(IList<SegmentCommitInfo> segments){if (0 == segments.Count){throw new Exception("segments must include at least one segment");}this.Segments = new List<SegmentCommitInfo>(segments);int count = 0;foreach (SegmentCommitInfo info in segments){count += info.Info.DocCount;}TotalDocCount = count;}