Package org.terrier.structures.merging
Class StructureMerger.NullDocumentIndex
- java.lang.Object
-
- org.terrier.structures.merging.StructureMerger.NullDocumentIndex
-
- All Implemented Interfaces:
DocumentIndex
- Enclosing class:
- StructureMerger
public static class StructureMerger.NullDocumentIndex extends java.lang.Object implements DocumentIndex
-
-
Constructor Summary
Constructors Constructor Description NullDocumentIndex(int _numDocs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentIndexEntrygetDocumentEntry(int docid)Return the document index entry based on its docid.intgetDocumentLength(int docid)Return the length of the document.intgetNumberOfDocuments()Return the number of documents.
-
-
-
Method Detail
-
getDocumentEntry
public DocumentIndexEntry getDocumentEntry(int docid) throws java.io.IOException
Description copied from interface:DocumentIndexReturn the document index entry based on its docid.- Specified by:
getDocumentEntryin interfaceDocumentIndex- Returns:
- the document index entry based on its docid.
- Throws:
java.io.IOException
-
getDocumentLength
public int getDocumentLength(int docid) throws java.io.IOExceptionDescription copied from interface:DocumentIndexReturn the length of the document.- Specified by:
getDocumentLengthin interfaceDocumentIndex- Returns:
- the length of the document.
- Throws:
java.io.IOException
-
getNumberOfDocuments
public int getNumberOfDocuments()
Description copied from interface:DocumentIndexReturn the number of documents.- Specified by:
getNumberOfDocumentsin interfaceDocumentIndex- Returns:
- the number of documents.
-
-