Interface MultiIndexReader
-
- All Superinterfaces:
ReleaseableIndexReader
- All Known Implementing Classes:
CachingMultiIndexReader,JackrabbitIndexReader,SearchIndex.CombinedIndexReader
public interface MultiIndexReader extends ReleaseableIndexReader
MultiIndexReaderexposes methods to get access to the containedIndexReaders of thisMultiIndexReader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocIdcreateDocId(NodeId id)Creates a document id for the given node identifier.intgetDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId)Returns the document number for the passeddocId.IndexReader[]getIndexReaders()-
Methods inherited from interface org.apache.jackrabbit.core.query.lucene.ReleaseableIndexReader
release
-
-
-
-
Method Detail
-
getIndexReaders
IndexReader[] getIndexReaders()
- Returns:
- the
IndexReaders that are contained in thisMultiIndexReader.
-
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
nullif there is no node with the givenid. - Throws:
IOException- if an error occurs while reading from the index.
-
getDocumentNumber
int getDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId) throws IOExceptionReturns the document number for the passeddocId. If the id is invalid-1is returned.- Parameters:
docId- the document id to resolve.- Returns:
- the document number or
-1if it is invalid (e.g. does not exist). - Throws:
IOException- if an error occurs while reading from the index.
-
-