Interface MultiIndexReader

    • Method Detail

      • getIndexReaders

        IndexReader[] getIndexReaders()
        Returns:
        the IndexReaders that are contained in this MultiIndexReader.
      • createDocId

        org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId createDocId​(NodeId id)
                                                                         throws IOException
        Creates a document id for the given node identifier.
        Parameters:
        id - the id of the node.
        Returns:
        a foreign segment doc id or null if there is no node with the given id.
        Throws:
        IOException - if an error occurs while reading from the index.
      • getDocumentNumber

        int getDocumentNumber​(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId)
                       throws IOException
        Returns the document number for the passed docId. If the id is invalid -1 is returned.
        Parameters:
        docId - the document id to resolve.
        Returns:
        the document number or -1 if it is invalid (e.g. does not exist).
        Throws:
        IOException - if an error occurs while reading from the index.