|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.singlepass.Posting
public class Posting
Class representing a simple posting list in memory.
It keeps the information for TF, Nt
, and the sequence [doc, tf]
Constructor Summary | |
---|---|
Posting()
|
Method Summary | |
---|---|
int |
getDocF()
|
MemorySBOS |
getDocs()
|
int |
getTF()
|
int |
insert(int doc,
int freq)
Inserts a new document in the posting list. |
void |
setDocF(int docF)
Set the document frequency the number of documents this term occurs in. |
void |
setDocs(MemorySBOS docs)
Sets the document data compressed object. |
void |
setTF(int tf)
Sets the term frequency in the run. |
void |
writeFirstDoc(int docId,
int freq)
Writes the first document in the posting list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Posting()
Method Detail |
---|
public void writeFirstDoc(int docId, int freq) throws java.io.IOException
docId
- the document identifier.freq
- the frequency of the term in the document.
java.io.IOException
- if an I/O error ocurrs.public int insert(int doc, int freq) throws java.io.IOException
doc
- the document identifier.freq
- the frequency of the term in the document.
java.io.IOException
- if and I/O error occurs.public int getTF()
public MemorySBOS getDocs()
public void setTF(int tf)
tf
- the term frequency.public void setDocs(MemorySBOS docs)
docs
- public int getDocF()
public void setDocF(int docF)
docF
- the document frequency.
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |