public class BlockPostingInRun extends SimplePostingInRun
BitOut
and it
represents a posting with blocks information (tf, df, [docid, idf, blockFr [blockid]])
Modifier and Type | Class and Description |
---|---|
protected class |
BlockPostingInRun.BlockPIRPostingIterator |
SimplePostingInRun.PIRPostingIterator
postingSource, term, termDf, termTF
Constructor and Description |
---|
BlockPostingInRun()
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, 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), blockNo(d1), bid1, bid2, ..., d2 - d1, idf(d2), blockNo(d2), ...
etcappend
in class SimplePostingInRun
bos
- BitOut to be written.last
- int representing the last document written in this posting.runShift
- amount of delta to apply to the first posting read.IOException
public IterablePosting getPostingIterator(int runShift) throws IOException
PostingInRun
getPostingIterator
in class SimplePostingInRun
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow