public static class PostingIndex.DocidSpecificDocumentIndex extends Object implements FieldDocumentIndex
| Constructor and Description | 
|---|
| PostingIndex.DocidSpecificDocumentIndex(DocumentIndex _di,
                                       DocumentIndexEntry _die) | 
| Modifier and Type | Method and Description | 
|---|---|
| DocumentIndexEntry | getDocumentEntry(int docid)Get the document index entry based on its docid | 
| int | getDocumentLength(int docid)Get the length of the document | 
| int[] | getFieldLengths(int docid)Get the length of each field | 
| int | getNumberOfDocuments()Get the number of documents | 
public PostingIndex.DocidSpecificDocumentIndex(DocumentIndex _di, DocumentIndexEntry _die)
public DocumentIndexEntry getDocumentEntry(int docid) throws IOException
DocumentIndexgetDocumentEntry in interface DocumentIndexIOExceptionpublic int getDocumentLength(int docid)
                      throws IOException
DocumentIndexgetDocumentLength in interface DocumentIndexIOExceptionpublic int getNumberOfDocuments()
DocumentIndexgetNumberOfDocuments in interface DocumentIndexpublic int[] getFieldLengths(int docid)
                      throws IOException
FieldDocumentIndexgetFieldLengths in interface FieldDocumentIndexIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow