public class MemoryDirectIndex extends Object implements PostingIndex<MemoryPointer>
Modifier and Type | Class and Description |
---|---|
class |
MemoryDirectIndex.DocumentPostingList |
PostingIndex.DocidSpecificDocumentIndex
Constructor and Description |
---|
MemoryDirectIndex(DocumentIndex doi)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int ptr,
int docid,
int freq)
Add posting to direct file.
|
void |
close() |
IterablePosting |
getPostings(Pointer pointer)
Get the posting given a pointer
|
PostingIndexInputStream |
iterator()
Return an iterator over the inverted file.
|
public MemoryDirectIndex(DocumentIndex doi)
public void add(int ptr, int docid, int freq)
public IterablePosting getPostings(Pointer pointer) throws IOException
getPostings
in interface PostingIndex<MemoryPointer>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public PostingIndexInputStream iterator()
Terrier 4.0. Copyright © 2004-2014 University of Glasgow