|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.IndexReader
org.apache.lucene.index.MultiReader
org.apache.jackrabbit.core.query.lucene.SearchIndex.CombinedIndexReader
protected static final class SearchIndex.CombinedIndexReader
Combines multiple CachingMultiIndexReader into a MultiReader
with HierarchyResolver support.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader |
|---|
org.apache.lucene.index.IndexReader.FieldOption |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.index.IndexReader |
|---|
hasChanges |
| Constructor Summary | |
|---|---|
SearchIndex.CombinedIndexReader(CachingMultiIndexReader[] indexReaders)
|
|
| Method Summary | |
|---|---|
org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId |
createDocId(UUID uuid)
Creates a document id for the given uuid. |
boolean |
equals(java.lang.Object obj)
|
int |
getDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId)
Returns the document number for the passed docId. |
org.apache.lucene.index.IndexReader[] |
getIndexReaders()
|
int |
getParent(int n)
Returns the document number of the parent of n or
-1 if n does not have a parent (n
is the root node). |
int |
hashCode()
|
void |
release()
Releases this index reader and potentially frees resources. |
| Methods inherited from class org.apache.lucene.index.MultiReader |
|---|
docFreq, doClose, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, reopen, termDocs, termPositions, terms, terms |
| Methods inherited from class org.apache.lucene.index.IndexReader |
|---|
acquireWriteLock, close, commit, decRef, deleteDocument, deleteDocuments, directory, document, ensureOpen, flush, getCurrentVersion, getCurrentVersion, getCurrentVersion, getIndexCommit, getTermInfosIndexDivisor, incRef, indexExists, indexExists, indexExists, isLocked, isLocked, lastModified, lastModified, lastModified, listCommits, main, numDeletedDocs, open, open, open, open, open, open, open, open, open, setNorm, setNorm, setTermInfosIndexDivisor, termDocs, termPositions, undeleteAll, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchIndex.CombinedIndexReader(CachingMultiIndexReader[] indexReaders)
| Method Detail |
|---|
public int getParent(int n)
throws java.io.IOException
HierarchyResolvern or
-1 if n does not have a parent (n
is the root node).
getParent in interface HierarchyResolvern - the document number.
n's parent.
java.io.IOException - if an error occurs while reading from the index.public org.apache.lucene.index.IndexReader[] getIndexReaders()
getIndexReaders in interface MultiIndexReaderIndexReaders that are contained in this
MultiIndexReader.
public void release()
throws java.io.IOException
IndexReader.close() this method
does not necessarily close the index reader, but gives the implementation
the opportunity to do reference counting.
release in interface ReleaseableIndexReaderjava.io.IOException - if an error occurs while releasing the index reader.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId createDocId(UUID uuid)
throws java.io.IOException
uuid.
createDocId in interface MultiIndexReaderuuid - the uuid of the node.
null if there is no node
with the given uuid.
java.io.IOException - if an error occurs while reading from the index.public int getDocumentNumber(org.apache.jackrabbit.core.query.lucene.ForeignSegmentDocId docId)
docId. If the id
is invalid -1 is returned.
getDocumentNumber in interface MultiIndexReaderdocId - the document id to resolve.
-1 if it is invalid (e.g.
does not exist).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||