public DocMapAnonymousInnerClassHelper(SortingOneMerge outerInstance, MergeState mergeState, MonotonicAppendingLongBuffer deletes)
 {
     this.outerInstance = outerInstance;
     this.mergeState = mergeState;
     this.deletes = deletes;
 }
 internal virtual MonotonicAppendingLongBuffer GetDeletes(IList<AtomicReader> readers)
 {
     MonotonicAppendingLongBuffer deletes = new MonotonicAppendingLongBuffer();
     int deleteCount = 0;
     foreach (AtomicReader reader in readers)
     {
         int maxDoc = reader.MaxDoc;
         Bits liveDocs = reader.LiveDocs;
         for (int i = 0; i < maxDoc; ++i)
         {
             if (liveDocs != null && !liveDocs.Get(i))
             {
                 ++deleteCount;
             }
             else
             {
                 deletes.Add(deleteCount);
             }
         }
     }
     deletes.Freeze();
     return deletes;
 }