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, getSizepublic 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 occursIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow