Package com.yahoo.search.predicate.index
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 Summary
Constructors Constructor Description CachedPostingListCounter(int nDocuments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
countPostingListsPerDocument(List<PostingList> postingLists, byte[] nPostingListsForDocument)
CachedPostingListCounter
rebuildCache()
void
registerUsage(List<PostingList> postingLists)
-
-
-
Method Detail
-
registerUsage
public void registerUsage(List<PostingList> postingLists)
-
countPostingListsPerDocument
public void countPostingListsPerDocument(List<PostingList> postingLists, byte[] nPostingListsForDocument)
-
rebuildCache
public CachedPostingListCounter rebuildCache()
-
-