Class ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader
- java.lang.Object
-
- org.apache.lucene.index.IndexReader
-
- org.apache.lucene.index.FilterIndexReader
-
- org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader
-
- All Implemented Interfaces:
org.alfresco.repo.search.impl.lucene.index.CachingIndexReader,ReferenceCounting
- Enclosing class:
- ReferenceCountingReadOnlyIndexReaderFactory
public static class ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader extends org.apache.lucene.index.FilterIndexReader implements ReferenceCounting, org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecRef()protected voiddoClose()We want to avoid setting the closed flag on our wrapped stream, passing on all decrefs.org.apache.lucene.document.Documentdocument(int n, org.apache.lucene.document.FieldSelector fieldSelector)protected voiddoDelete(int n)booleangetClosed()longgetCreationTime()java.lang.StringgetId()Get the id for this reader.java.lang.StringgetId(int n)java.lang.String[]getIds(int n)booleangetInvalidForReuse()java.lang.StringgetIsCategory(int n)java.lang.String[]getLinkAspects(int n)org.apache.lucene.index.TermDocsgetNodeDocs()java.lang.String[]getParents(int n)java.lang.StringgetPath(int n)java.lang.StringgetPathLinkId(int n)intgetReferenceCount()Get the number of referencesjava.util.Deque<java.lang.Throwable>getReferences()java.lang.StringgetType(int n)voidincRef()booleanisInvalidForReuse()Determine if valid for reusevoidsetInvalidForReuse()Mark is invalid for reuse.-
Methods inherited from class org.apache.lucene.index.FilterIndexReader
directory, docFreq, doCommit, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, numDocs, termDocs, termPositions, terms, terms
-
Methods inherited from class org.apache.lucene.index.IndexReader
acquireWriteLock, 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, unlock
-
-
-
-
Method Detail
-
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTimein interfaceReferenceCounting
-
getReferences
public java.util.Deque<java.lang.Throwable> getReferences()
- Specified by:
getReferencesin interfaceReferenceCounting
-
incRef
public void incRef()
- Overrides:
incRefin classorg.apache.lucene.index.IndexReader
-
getReferenceCount
public int getReferenceCount()
Description copied from interface:ReferenceCountingGet the number of references- Specified by:
getReferenceCountin interfaceReferenceCounting- Returns:
- int
-
getInvalidForReuse
public boolean getInvalidForReuse()
-
getClosed
public boolean getClosed()
-
setInvalidForReuse
public void setInvalidForReuse() throws java.io.IOExceptionDescription copied from interface:ReferenceCountingMark is invalid for reuse.- Specified by:
setInvalidForReusein interfaceReferenceCounting- Throws:
java.io.IOException
-
decRef
public void decRef() throws java.io.IOException- Overrides:
decRefin classorg.apache.lucene.index.IndexReader- Throws:
java.io.IOException
-
doClose
protected void doClose() throws java.io.IOExceptionWe want to avoid setting the closed flag on our wrapped stream, passing on all decrefs.- Overrides:
doClosein classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
doDelete
protected void doDelete(int n) throws java.io.IOException- Overrides:
doDeletein classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
document
public org.apache.lucene.document.Document document(int n, org.apache.lucene.document.FieldSelector fieldSelector) throws java.io.IOException- Overrides:
documentin classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
Description copied from interface:ReferenceCountingGet the id for this reader.- Specified by:
getIdin interfaceReferenceCounting- Returns:
- String
-
isInvalidForReuse
public boolean isInvalidForReuse()
Description copied from interface:ReferenceCountingDetermine if valid for reuse- Specified by:
isInvalidForReusein interfaceReferenceCounting- Returns:
- boolean
-
getId
public java.lang.String getId(int n) throws java.io.IOException- Specified by:
getIdin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getPathLinkId
public java.lang.String getPathLinkId(int n) throws java.io.IOException- Specified by:
getPathLinkIdin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getIds
public java.lang.String[] getIds(int n) throws java.io.IOException- Specified by:
getIdsin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getLinkAspects
public java.lang.String[] getLinkAspects(int n) throws java.io.IOException- Specified by:
getLinkAspectsin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getParents
public java.lang.String[] getParents(int n) throws java.io.IOException- Specified by:
getParentsin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getPath
public java.lang.String getPath(int n) throws java.io.IOException- Specified by:
getPathin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getType
public java.lang.String getType(int n) throws java.io.IOException- Specified by:
getTypein interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getIsCategory
public java.lang.String getIsCategory(int n) throws java.io.IOException- Specified by:
getIsCategoryin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
getNodeDocs
public org.apache.lucene.index.TermDocs getNodeDocs() throws java.io.IOException- Specified by:
getNodeDocsin interfaceorg.alfresco.repo.search.impl.lucene.index.CachingIndexReader- Throws:
java.io.IOException
-
-