public class MemoryFieldsInvertedIndex extends MemoryInvertedIndex
MemoryInvertedIndex.BasicMemoryPostingList, MemoryInvertedIndex.InvertedIterator
PostingIndex.DocidSpecificDocumentIndex
doi, 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, setDoi
public MemoryFieldsInvertedIndex(Lexicon<String> lexicon, DocumentIndex docindex)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class MemoryInvertedIndex
public 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 MemoryInvertedIndex
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow