public class MemoryFieldsInvertedIndex extends MemoryInvertedIndex
MemoryInvertedIndex.BasicMemoryPostingList, MemoryInvertedIndex.InvertedIteratorPostingIndex.DocidSpecificDocumentIndexdoi, lex, postings| Constructor and Description | 
|---|
| MemoryFieldsInvertedIndex(Lexicon<String> lexicon,
                         DocumentIndex docindex)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(int termid,
   int docid,
   int freq,
   int[] fields)Insert/update posting (docid,freq,(fields)). | 
| void | close() | 
| IterablePosting | getPostings(Pointer _termid)Get the posting given a pointer | 
add, addOrUpdate, getDoi, iterator, remove, setDoipublic MemoryFieldsInvertedIndex(Lexicon<String> lexicon, DocumentIndex docindex)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class MemoryInvertedIndexpublic void add(int termid,
       int docid,
       int freq,
       int[] fields)
public IterablePosting getPostings(Pointer _termid) throws IOException
getPostings in interface PostingIndex<MemoryPointer>getPostings in class MemoryInvertedIndexIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow