public static class ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader extends org.apache.lucene.index.FilterIndexReader implements ReferenceCounting, org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
| Modifier and Type | Method and Description |
|---|---|
void |
decRef() |
protected void |
doClose()
We want to avoid setting the closed flag on our wrapped stream, passing on all decrefs.
|
org.apache.lucene.document.Document |
document(int n,
org.apache.lucene.document.FieldSelector fieldSelector) |
protected void |
doDelete(int n) |
boolean |
getClosed() |
long |
getCreationTime() |
java.lang.String |
getId()
Get the id for this reader.
|
java.lang.String |
getId(int n) |
java.lang.String[] |
getIds(int n) |
boolean |
getInvalidForReuse() |
java.lang.String |
getIsCategory(int n) |
java.lang.String[] |
getLinkAspects(int n) |
org.apache.lucene.index.TermDocs |
getNodeDocs() |
java.lang.String[] |
getParents(int n) |
java.lang.String |
getPath(int n) |
java.lang.String |
getPathLinkId(int n) |
int |
getReferenceCount()
Get the number of references
|
java.util.Deque |
getReferences() |
java.lang.String |
getType(int n) |
void |
incRef() |
boolean |
isInvalidForReuse()
Determine if valid for reuse
|
void |
setInvalidForReuse()
Mark is invalid for reuse.
|
directory, docFreq, doCommit, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, termDocs, termPositions, terms, termsacquireWriteLock, close, commit, deleteDocument, deleteDocuments, document, ensureOpen, flush, getCurrentVersion, getCurrentVersion, getCurrentVersion, getIndexCommit, getTermInfosIndexDivisor, indexExists, indexExists, indexExists, isLocked, isLocked, lastModified, lastModified, lastModified, listCommits, main, numDeletedDocs, open, open, open, open, open, open, open, open, open, reopen, setNorm, setNorm, setTermInfosIndexDivisor, termDocs, termPositions, undeleteAll, unlockpublic long getCreationTime()
getCreationTime in interface ReferenceCountingpublic java.util.Deque getReferences()
getReferences in interface ReferenceCountingpublic void incRef()
incRef in class org.apache.lucene.index.IndexReaderpublic int getReferenceCount()
ReferenceCountinggetReferenceCount in interface ReferenceCountingpublic boolean getInvalidForReuse()
public boolean getClosed()
public void setInvalidForReuse()
throws java.io.IOException
ReferenceCountingsetInvalidForReuse in interface ReferenceCountingjava.io.IOExceptionpublic void decRef()
throws java.io.IOException
decRef in class org.apache.lucene.index.IndexReaderjava.io.IOExceptionprotected void doClose()
throws java.io.IOException
doClose in class org.apache.lucene.index.FilterIndexReaderjava.io.IOExceptionprotected void doDelete(int n)
throws java.io.IOException
doDelete in class org.apache.lucene.index.FilterIndexReaderjava.io.IOExceptionpublic org.apache.lucene.document.Document document(int n,
org.apache.lucene.document.FieldSelector fieldSelector)
throws java.io.IOException
document in class org.apache.lucene.index.FilterIndexReaderjava.io.IOExceptionpublic java.lang.String getId()
ReferenceCountinggetId in interface ReferenceCountingpublic boolean isInvalidForReuse()
ReferenceCountingisInvalidForReuse in interface ReferenceCountingpublic java.lang.String getId(int n)
throws java.io.IOException
getId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String getPathLinkId(int n)
throws java.io.IOException
getPathLinkId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String[] getIds(int n)
throws java.io.IOException
getIds in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String[] getLinkAspects(int n)
throws java.io.IOException
getLinkAspects in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String[] getParents(int n)
throws java.io.IOException
getParents in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String getPath(int n)
throws java.io.IOException
getPath in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String getType(int n)
throws java.io.IOException
getType in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic java.lang.String getIsCategory(int n)
throws java.io.IOException
getIsCategory in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionpublic org.apache.lucene.index.TermDocs getNodeDocs()
throws java.io.IOException
getNodeDocs in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.