public class MultiDoc extends Object implements DocumentIndex
Constructor and Description |
---|
MultiDoc(DocumentIndex[] docs,
int[] offsets)
constructor.
|
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 |
getNumberOfDocuments()
Get the number of documents
|
public MultiDoc(DocumentIndex[] docs, int[] offsets)
public DocumentIndexEntry getDocumentEntry(int docid) throws IOException
getDocumentEntry
in interface DocumentIndex
IOException
public int getDocumentLength(int docid) throws IOException
getDocumentLength
in interface DocumentIndex
IOException
public int getNumberOfDocuments()
getNumberOfDocuments
in interface DocumentIndex
Terrier 4.0. Copyright © 2004-2014 University of Glasgow