public class SimplePostingInRun extends PostingInRun
BitOut and it
represents the simpler class of posting (TF, df, [docid, tf])| Modifier and Type | Class and Description |
|---|---|
protected class |
SimplePostingInRun.PIRPostingIterator |
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, setPostingSource, setTerm, setTFpublic 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 PostingInRunbos - 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.IOExceptionpublic IterablePosting getPostingIterator(int runShift) throws IOException
PostingInRungetPostingIterator in class PostingInRunIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow