public class BlockFieldMemoryPostings extends BlockMemoryPostings
keyBytes, logger, maxSize, numPointers, postings, valueBytes
Constructor and Description |
---|
BlockFieldMemoryPostings() |
Modifier and Type | Method and Description |
---|---|
void |
add(String term,
int doc,
int frequency,
int[] fieldFrequencies,
int[] blockids)
add
|
void |
addTerms(DocumentPostingList _docPostings,
int docid)
Add the terms in a DocumentPostingList to the postings in memory.
|
add
add, finish, finish, getMemoryConsumption, getPointers, getSize
public void addTerms(DocumentPostingList _docPostings, int docid) throws IOException
addTerms
in class BlockMemoryPostings
_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[] fieldFrequencies, int[] blockids) throws IOException
term
- doc
- frequency
- fieldFrequencies
- blockids
- IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow