Class StructureMerger.NullDocumentIndex

    • Constructor Detail

      • NullDocumentIndex

        public NullDocumentIndex​(int _numDocs)
    • Method Detail

      • getDocumentEntry

        public DocumentIndexEntry getDocumentEntry​(int docid)
                                            throws java.io.IOException
        Description copied from interface: DocumentIndex
        Return the document index entry based on its docid.
        Specified by:
        getDocumentEntry in interface DocumentIndex
        Returns:
        the document index entry based on its docid.
        Throws:
        java.io.IOException
      • getDocumentLength

        public int getDocumentLength​(int docid)
                              throws java.io.IOException
        Description copied from interface: DocumentIndex
        Return the length of the document.
        Specified by:
        getDocumentLength in interface DocumentIndex
        Returns:
        the length of the document.
        Throws:
        java.io.IOException
      • getNumberOfDocuments

        public int getNumberOfDocuments()
        Description copied from interface: DocumentIndex
        Return the number of documents.
        Specified by:
        getNumberOfDocuments in interface DocumentIndex
        Returns:
        the number of documents.