Class FilterIndexReaderByStringId


  • public class FilterIndexReaderByStringId
    extends org.apache.lucene.index.FilterIndexReader
    An index reader that filters documents from another.
    Author:
    andyh
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  FilterIndexReaderByStringId.FilterTermDocs
      Filter implementation
      class  FilterIndexReaderByStringId.FilterTermPositions
      Base class for filtering TermPositions implementations.
      • Nested classes/interfaces inherited from class org.apache.lucene.index.FilterIndexReader

        org.apache.lucene.index.FilterIndexReader.FilterTermEnum
      • 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
      protected void doClose()  
      org.apache.lucene.util.OpenBitSet getDeletedDocuments()  
      int numDocs()  
      org.apache.lucene.index.TermDocs termDocs()  
      org.apache.lucene.index.TermPositions termPositions()  
      • Methods inherited from class org.apache.lucene.index.FilterIndexReader

        directory, docFreq, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasDeletions, hasNorms, isCurrent, isDeleted, isOptimized, maxDoc, norms, norms, terms, terms
      • Methods inherited from class org.apache.lucene.index.IndexReader

        acquireWriteLock, close, commit, decRef, deleteDocument, deleteDocuments, document, ensureOpen, flush, getCurrentVersion, getCurrentVersion, getCurrentVersion, getIndexCommit, getTermInfosIndexDivisor, incRef, 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
    • Constructor Detail

      • FilterIndexReaderByStringId

        public FilterIndexReaderByStringId​(String id,
                                           org.apache.lucene.index.IndexReader reader,
                                           Set<String> deletions,
                                           Set<String> containerDeletions,
                                           boolean deleteNodesOnly)
        Apply the filter
        Parameters:
        id - String
        reader - IndexReader
        deleteNodesOnly - boolean
    • Method Detail

      • getDeletedDocuments

        public org.apache.lucene.util.OpenBitSet getDeletedDocuments()
      • doClose

        protected void doClose()
                        throws IOException
        Overrides:
        doClose in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException
      • numDocs

        public int numDocs()
        Overrides:
        numDocs in class org.apache.lucene.index.FilterIndexReader
      • termDocs

        public org.apache.lucene.index.TermDocs termDocs()
                                                  throws IOException
        Overrides:
        termDocs in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException
      • termPositions

        public org.apache.lucene.index.TermPositions termPositions()
                                                            throws IOException
        Overrides:
        termPositions in class org.apache.lucene.index.FilterIndexReader
        Throws:
        IOException