Package org.terrier.realtime.memory
Class MemoryInvertedIndex.BasicMemoryPostingList
- java.lang.Object
-
- org.terrier.realtime.memory.MemoryInvertedIndex.BasicMemoryPostingList
-
- All Implemented Interfaces:
MemoryPostingList
- Enclosing class:
- MemoryInvertedIndex
public class MemoryInvertedIndex.BasicMemoryPostingList extends java.lang.Object implements MemoryPostingList
-
-
Constructor Summary
Constructors Constructor Description BasicMemoryPostingList()BasicMemoryPostingList(int[] docids, int[] docfreqs)BasicMemoryPostingList(int docid, int docfreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int docid, int docfreq)booleanaddOrUpdateFreq(int docid, int freq)Returns true iff we did not already have a posting for this documentintgetFreq(int docid)gnu.trove.TIntArrayListgetPl_doc()gnu.trove.TIntArrayListgetPl_freq()
-
-
-
Method Detail
-
add
public void add(int docid, int docfreq)
-
getFreq
public int getFreq(int docid)
-
addOrUpdateFreq
public boolean addOrUpdateFreq(int docid, int freq)Returns true iff we did not already have a posting for this document
-
getPl_doc
public gnu.trove.TIntArrayList getPl_doc()
-
getPl_freq
public gnu.trove.TIntArrayList getPl_freq()
-
-