public class SimplePostingInRun extends PostingInRun
BitOut
and it
represents the simpler class of posting (TF, df, maxtf, [docid, tf])
Modifier and Type | Class and Description |
---|---|
protected class |
SimplePostingInRun.PIRPostingIterator |
maxtf, postingSource, term, termDf, termTF
Constructor and Description |
---|
SimplePostingInRun()
Constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
int |
append(BitOut bos,
int last,
int runShift)
Writes the document data of this posting to a
BitOut
It encodes the data with the right compression methods. |
IterablePosting |
getPostingIterator(int runShift)
Returns an IterablePosting object for the postings in this run
|
addToLexiconEntry, append, getDf, getLexiconEntry, getTerm, getTF, setDf, setMaxtf, setPostingSource, setTerm, setTF
public int append(BitOut bos, int last, int runShift) throws IOException
BitOut
It encodes the data with the right compression methods.
The stream is written as d1, idf(d1), d2 - d1, idf(d2)
etc.append
in class PostingInRun
bos
- BitOut to be written.last
- int representing the last document written in this posting.runShift
- int representing the last document read document read in this posting stream.IOException
public IterablePosting getPostingIterator(int runShift) throws IOException
PostingInRun
getPostingIterator
in class PostingInRun
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow