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(int pointer) | 
| 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>IOExceptionpublic IterablePosting getPostings(int pointer) throws IOException
IOExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic PostingIndexInputStream iterator()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow