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() |
String |
getId()
Get the id for this reader.
|
String |
getId(int n) |
String[] |
getIds(int n) |
boolean |
getInvalidForReuse() |
String |
getIsCategory(int n) |
String[] |
getLinkAspects(int n) |
org.apache.lucene.index.TermDocs |
getNodeDocs() |
String[] |
getParents(int n) |
String |
getPath(int n) |
String |
getPathLinkId(int n) |
int |
getReferenceCount()
Get the number of references
|
Deque<Throwable> |
getReferences() |
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 Deque<Throwable> 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 IOException
ReferenceCountingsetInvalidForReuse in interface ReferenceCountingIOExceptionpublic void decRef()
throws IOException
decRef in class org.apache.lucene.index.IndexReaderIOExceptionprotected void doClose()
throws IOException
doClose in class org.apache.lucene.index.FilterIndexReaderIOExceptionprotected void doDelete(int n)
throws IOException
doDelete in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic org.apache.lucene.document.Document document(int n,
org.apache.lucene.document.FieldSelector fieldSelector)
throws IOException
document in class org.apache.lucene.index.FilterIndexReaderIOExceptionpublic String getId()
ReferenceCountinggetId in interface ReferenceCountingpublic boolean isInvalidForReuse()
ReferenceCountingisInvalidForReuse in interface ReferenceCountingpublic String getId(int n) throws IOException
getId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String getPathLinkId(int n) throws IOException
getPathLinkId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String[] getIds(int n) throws IOException
getIds in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String[] getLinkAspects(int n) throws IOException
getLinkAspects in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String[] getParents(int n) throws IOException
getParents in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String getPath(int n) throws IOException
getPath in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String getType(int n) throws IOException
getType in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic String getIsCategory(int n) throws IOException
getIsCategory in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionpublic org.apache.lucene.index.TermDocs getNodeDocs()
throws IOException
getNodeDocs in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReaderIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.