Package com.yahoo.search.predicate.index
Class CachedPostingListCounter
java.lang.Object
com.yahoo.search.predicate.index.CachedPostingListCounter
Counts the number of posting lists per document id.
Caches the most expensive posting list in a bit vector.
- Author:
- bjorncs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
countPostingListsPerDocument
(List<PostingList> postingLists, byte[] nPostingListsForDocument) void
registerUsage
(List<PostingList> postingLists)
-
Constructor Details
-
CachedPostingListCounter
public CachedPostingListCounter(int nDocuments)
-
-
Method Details
-
registerUsage
-
countPostingListsPerDocument
public void countPostingListsPerDocument(List<PostingList> postingLists, byte[] nPostingListsForDocument) -
rebuildCache
-