|
||||||||||
| 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.CachingMultiReader
public final class CachingMultiReader
Extends a MultiReader with support for cached TermDocs
on FieldNames.UUID field.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader |
|---|
org.apache.lucene.index.IndexReader.FieldOption |
| Constructor Summary | |
|---|---|
CachingMultiReader(org.apache.jackrabbit.core.query.lucene.ReadOnlyIndexReader[] subReaders,
org.apache.jackrabbit.core.query.lucene.DocNumberCache cache)
Creates a new CachingMultiReader based on sub readers. |
|
| Method Summary | |
|---|---|
protected void |
doClose()
Decrements the reference count and closes the underlying readers if this reader is not in use anymore. |
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). |
org.apache.jackrabbit.core.query.lucene.DocId |
getParentDocId(int n)
Returns the DocId of the parent of n or DocId#NULL
if n does not have a parent (n is the root
node). |
org.apache.lucene.index.TermDocs |
termDocs(org.apache.lucene.index.Term term)
|
| Methods inherited from class org.apache.lucene.index.MultiReader |
|---|
docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVectors, hasDeletions, hasNorms, isDeleted, maxDoc, norms, norms, numDocs, termDocs, termPositions, terms, terms |
| Methods inherited from class org.apache.lucene.index.IndexReader |
|---|
close, commit, deleteDocument, deleteDocuments, directory, finalize, getCurrentVersion, getCurrentVersion, getCurrentVersion, getVersion, indexExists, indexExists, indexExists, isCurrent, isLocked, isLocked, lastModified, lastModified, lastModified, main, open, open, open, setNorm, setNorm, termPositions, undeleteAll, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingMultiReader(org.apache.jackrabbit.core.query.lucene.ReadOnlyIndexReader[] subReaders,
org.apache.jackrabbit.core.query.lucene.DocNumberCache cache)
throws IOException
CachingMultiReader based on sub readers.
subReaders - the sub readers.cache - the document number cache.
IOException - if an error occurs while reading from the indexes.| Method Detail |
|---|
public int getParent(int n)
throws IOException
n or
-1 if n does not have a parent (n
is the root node).
getParent in interface HierarchyResolvern - the document number.
n's parent.
IOException - if an error occurs while reading from the index.
public org.apache.jackrabbit.core.query.lucene.DocId getParentDocId(int n)
throws IOException
n or DocId#NULL
if n does not have a parent (n is the root
node).
n - the document number.
n's parent.
IOException - if an error occurs while reading from the index.
public org.apache.lucene.index.TermDocs termDocs(org.apache.lucene.index.Term term)
throws IOException
termDocs in class org.apache.lucene.index.IndexReaderIOException
protected void doClose()
throws IOException
doClose in class org.apache.lucene.index.MultiReaderIOException - if an error occurs while closing this reader.public org.apache.lucene.index.IndexReader[] getIndexReaders()
getIndexReaders in interface MultiIndexReaderIndexReaders that are contained in this
MultiIndexReader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||