public interface MultiIndexReader extends ReleaseableIndexReader
MultiIndexReader
exposes methods to get access to the contained
IndexReader
s of this MultiIndexReader
.Modifier and Type | Method and Description |
---|---|
org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId |
createDocId(NodeId id)
Creates a document id for the given node identifier.
|
int |
getDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId)
Returns the document number for the passed
docId . |
org.apache.lucene.index.IndexReader[] |
getIndexReaders() |
release
org.apache.lucene.index.IndexReader[] getIndexReaders()
IndexReader
s that are contained in this
MultiIndexReader
.org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId createDocId(NodeId id) throws IOException
id
- the id of the node.null
if there is no node
with the given id
.IOException
- if an error occurs while reading from the index.int getDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId) throws IOException
docId
. If the id
is invalid -1
is returned.docId
- the document id to resolve.-1
if it is invalid (e.g.
does not exist).IOException
- if an error occurs while reading from the index.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.