public class BlockPosting extends Posting
DF, TF
, and the sequence [doc, tf, blockCount, [blockId]]
Constructor and Description |
---|
BlockPosting() |
Modifier and Type | Method and Description |
---|---|
int |
insert(int doc,
int freq,
int[] blockids)
Inserts a new document in the posting list.
|
int |
writeFirstDoc(int doc,
int frequency,
int[] blockids)
Writes the first document in the posting list.
|
public int writeFirstDoc(int doc, int frequency, int[] blockids) throws IOException
doc
- the document identifier.frequency
- the frequency of the term in the document.blockids
- the blockids for all the termIOException
- if an I/O error ocurrs.public int insert(int doc, int freq, int[] blockids) throws IOException
doc
- the document identifier.freq
- the frequency of the term in the document.blockids
- the blockids for all the termIOException
- if and I/O error occurs.Terrier 4.0. Copyright © 2004-2014 University of Glasgow