Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.index.FilterIndexReader

        org.apache.lucene.index.FilterIndexReader.FilterTermDocs, org.apache.lucene.index.FilterIndexReader.FilterTermEnum, org.apache.lucene.index.FilterIndexReader.FilterTermPositions
      • 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.FilterIndexReader

        in
      • Fields inherited from class org.apache.lucene.index.IndexReader

        hasChanges
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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

      • incRef

        public void incRef()
        Overrides:
        incRef in class org.apache.lucene.index.IndexReader
      • getInvalidForReuse

        public boolean getInvalidForReuse()
      • getClosed

        public boolean getClosed()
      • decRef

        public void decRef()
                    throws IOException
        Overrides:
        decRef in class org.apache.lucene.index.IndexReader
        Throws:
        IOException
      • doClose

        protected void doClose()
                        throws IOException
        We want to avoid setting the closed flag on our wrapped stream, passing on all decrefs.
        Overrides:
        doClose in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException
      • doDelete

        protected void doDelete​(int n)
                         throws IOException
        Overrides:
        doDelete in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException
      • document

        public org.apache.lucene.document.Document document​(int n,
                                                            org.apache.lucene.document.FieldSelector fieldSelector)
                                                     throws IOException
        Overrides:
        document in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException
      • getId

        public String getId​(int n)
                     throws IOException
        Specified by:
        getId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getPathLinkId

        public String getPathLinkId​(int n)
                             throws IOException
        Specified by:
        getPathLinkId in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getIds

        public String[] getIds​(int n)
                        throws IOException
        Specified by:
        getIds in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getLinkAspects

        public String[] getLinkAspects​(int n)
                                throws IOException
        Specified by:
        getLinkAspects in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getParents

        public String[] getParents​(int n)
                            throws IOException
        Specified by:
        getParents in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getPath

        public String getPath​(int n)
                       throws IOException
        Specified by:
        getPath in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getType

        public String getType​(int n)
                       throws IOException
        Specified by:
        getType in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getIsCategory

        public String getIsCategory​(int n)
                             throws IOException
        Specified by:
        getIsCategory in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException
      • getNodeDocs

        public org.apache.lucene.index.TermDocs getNodeDocs()
                                                     throws IOException
        Specified by:
        getNodeDocs in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
        Throws:
        IOException