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
|
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 4.0. Copyright © 2004-2014 University of Glasgow