Class FilterIndexReaderByStringId
- java.lang.Object
-
- org.apache.lucene.index.IndexReader
-
- org.apache.lucene.index.FilterIndexReader
-
- org.alfresco.repo.search.impl.lucene.FilterIndexReaderByStringId
-
public class FilterIndexReaderByStringId extends org.apache.lucene.index.FilterIndexReaderAn index reader that filters documents from another.- Author:
- andyh
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFilterIndexReaderByStringId.FilterTermDocsFilter implementationclassFilterIndexReaderByStringId.FilterTermPositionsBase class for filteringTermPositionsimplementations.
-
Constructor Summary
Constructors Constructor Description FilterIndexReaderByStringId(java.lang.String id, org.apache.lucene.index.IndexReader reader, java.util.Set<java.lang.String> deletions, java.util.Set<java.lang.String> containerDeletions, boolean deleteNodesOnly)Apply the filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()org.apache.lucene.util.OpenBitSetgetDeletedDocuments()intnumDocs()org.apache.lucene.index.TermDocstermDocs()org.apache.lucene.index.TermPositionstermPositions()-
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(java.lang.String id, org.apache.lucene.index.IndexReader reader, java.util.Set<java.lang.String> deletions, java.util.Set<java.lang.String> containerDeletions, boolean deleteNodesOnly)Apply the filter- Parameters:
id- Stringreader- IndexReaderdeleteNodesOnly- boolean
-
-
Method Detail
-
getDeletedDocuments
public org.apache.lucene.util.OpenBitSet getDeletedDocuments()
-
doClose
protected void doClose() throws java.io.IOException- Overrides:
doClosein classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
numDocs
public int numDocs()
- Overrides:
numDocsin classorg.apache.lucene.index.FilterIndexReader
-
termDocs
public org.apache.lucene.index.TermDocs termDocs() throws java.io.IOException- Overrides:
termDocsin classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
termPositions
public org.apache.lucene.index.TermPositions termPositions() throws java.io.IOException- Overrides:
termPositionsin classorg.apache.lucene.index.FilterIndexReader- Throws:
java.io.IOException
-
-