public class BlockMemoryPostings extends MemoryPostings
keyBytes, logger, maxSize, numPointers, postings, valueBytes
Constructor and Description |
---|
BlockMemoryPostings() |
Modifier and Type | Method and Description |
---|---|
void |
add(String term,
int doc,
int frequency,
int[] blocks)
Add the specified to the term posting to the memory postings.
|
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
- BlockDocumentPostingList containing the posting information for one document.docid
- Document id of the indexed documentIOException
- if an I/O error occurs.public void add(String term, int doc, int frequency, int[] blocks) throws IOException
term
- The String form of the termdoc
- the document id of the docfrequency
- the frequency of the specified term in the documentblocks
- the blockids at which this term occursIOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow