Class FSADocumentIndexInMem

    • Field Detail

      • lastDocid

        protected int lastDocid
      • docLengths

        protected int[] docLengths
    • Constructor Detail

      • FSADocumentIndexInMem

        public FSADocumentIndexInMem​(IndexOnDisk index,
                                     java.lang.String structureName)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getDocumentLength

        public final 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
      • 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
      • 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.