public MixedPostingsListBuilder(int rangeThreshold)
 {
     AllDocuments              = new RangePostingsList();
     RangedPostingsLists       = new Dictionary <T, RangePostingsList>();
     UncompressedPostingsLists = new Dictionary <T, List <DocumentId> >();
     this.rangeThreshold       = rangeThreshold;
 }
 private RangePostingsList GetRange(IReadOnlyCollection <DocumentId> chain)
 {
     return(chain switch
     {
         RangePostingsList range => range,
         _ => ConvertToRange(chain)
     });