public class FieldsMemoryPostings extends MemoryPostings
keyBytes, logger, maxSize, numPointers, postings, valueBytes
Constructor and Description |
---|
FieldsMemoryPostings() |
Modifier and Type | Method and Description |
---|---|
void |
add(String term,
int doc,
int frequency,
int[] fieldFrequencies)
Adds an occurrence of a term in a document to the posting in memory.
|
void |
addTerms(DocumentPostingList docPostings,
int docid)
Add the terms in a DocumentPostingList to the postings in memory.
|
add, finish, finish, getMemoryConsumption, getPointers, getSize
public void addTerms(DocumentPostingList docPostings, int docid) throws IOException
addTerms
in class MemoryPostings
docPostings
- DocumentPostingList containing the term information for the denoted document.docid
- Current document Identifier.IOException
- if an I/O error occurs.public void add(String term, int doc, int frequency, int[] fieldFrequencies) throws IOException
term
- String representing the term.doc
- int containing the document identifier.frequency
- int containing the frequency of the term in the document.fieldFrequencies
- int[] contains the frequencies of the term in each fieldIOException
- if an I/O error occurs.Terrier 4.0. Copyright © 2004-2014 University of Glasgow