public class FieldPosting extends Posting
BitOutputStream and it
represents a posting with field information (tf, df, [docid, idf, field_f, field_f, field_f])| Constructor and Description |
|---|
FieldPosting() |
| Modifier and Type | Method and Description |
|---|---|
int |
insert(int doc,
int freq,
int[] fieldFrequencies)
Inserts a new document in the posting list.
|
int |
writeFirstDoc(int doc,
int frequency,
int[] fieldFrequencies)
Writes the first document in the posting list.
|
public int writeFirstDoc(int doc,
int frequency,
int[] fieldFrequencies)
throws IOException
doc - the document identifier.frequency - the frequency of the term in the document.fieldFrequencies - tf in each field for the term in the document.IOException - if an I/O error ocurrs.public int insert(int doc,
int freq,
int[] fieldFrequencies)
throws IOException
doc - the document identifier.freq - the frequency of the term in the document.fieldFrequencies - the frequency of the term in the document.IOException - if and I/O error occurs.Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow