Class CachedPostingListCounter

java.lang.Object
com.yahoo.search.predicate.index.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 Details

    • CachedPostingListCounter

      public CachedPostingListCounter(int nDocuments)
  • Method Details

    • registerUsage

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

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

      public CachedPostingListCounter rebuildCache()