public class MemoryInvertedIndex.BasicMemoryPostingList extends Object implements MemoryPostingList
Constructor and Description |
---|
BasicMemoryPostingList() |
BasicMemoryPostingList(int[] docids,
int[] docfreqs) |
BasicMemoryPostingList(int docid,
int docfreq) |
Modifier and Type | Method and Description |
---|---|
void |
add(int docid,
int docfreq) |
boolean |
addOrUpdateFreq(int docid,
int freq)
Returns true iff we did not already have a posting for this document
|
int |
getFreq(int docid) |
gnu.trove.TIntArrayList |
getPl_doc() |
gnu.trove.TIntArrayList |
getPl_freq() |
public BasicMemoryPostingList()
public BasicMemoryPostingList(int[] docids, int[] docfreqs)
public BasicMemoryPostingList(int docid, int docfreq)
public void add(int docid, int docfreq)
public int getFreq(int docid)
public boolean addOrUpdateFreq(int docid, int freq)
public gnu.trove.TIntArrayList getPl_doc()
public gnu.trove.TIntArrayList getPl_freq()
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow