Interface DocumentIndex

    • Method Detail

      • getDocumentEntry

        DocumentIndexEntry getDocumentEntry​(int docid)
                                     throws java.io.IOException
        Return the document index entry based on its docid.
        Returns:
        the document index entry based on its docid.
        Throws:
        java.io.IOException
      • getDocumentLength

        int getDocumentLength​(int docid)
                       throws java.io.IOException
        Return the length of the document.
        Returns:
        the length of the document.
        Throws:
        java.io.IOException
      • getNumberOfDocuments

        int getNumberOfDocuments()
        Return the number of documents.
        Returns:
        the number of documents.