Class CachedPostingListCounter


  • public class CachedPostingListCounter
    extends Object
    Counts the number of posting lists per document id. Caches the most expensive posting list in a bit vector.
    Author:
    bjorncs
    • Constructor Detail

      • CachedPostingListCounter

        public CachedPostingListCounter​(int nDocuments)
    • Method Detail

      • registerUsage

        public void registerUsage​(List<PostingList> postingLists)
      • countPostingListsPerDocument

        public void countPostingListsPerDocument​(List<PostingList> postingLists,
                                                 byte[] nPostingListsForDocument)