public class MemoryInvertedIndex.BasicMemoryPostingList extends Object implements MemoryPostingList
Constructor and Description |
---|
MemoryInvertedIndex.BasicMemoryPostingList() |
MemoryInvertedIndex.BasicMemoryPostingList(int[] docids,
int[] docfreqs) |
MemoryInvertedIndex.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 MemoryInvertedIndex.BasicMemoryPostingList()
public MemoryInvertedIndex.BasicMemoryPostingList(int[] docids, int[] docfreqs)
public MemoryInvertedIndex.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 Platform4.1. Copyright © 2004-2015, University of Glasgow