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
DocumentIndex
getDocumentEntry
in interface DocumentIndex
IOException
public int getDocumentLength(int docid) throws IOException
DocumentIndex
getDocumentLength
in interface DocumentIndex
IOException
public int getNumberOfDocuments()
DocumentIndex
getNumberOfDocuments
in interface DocumentIndex
public int[] getFieldLengths(int docid) throws IOException
FieldDocumentIndex
getFieldLengths
in interface FieldDocumentIndex
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow