org.apache.lucene.index
Class PKIndexSplitter.DocumentFilteredIndexReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.FilterIndexReader
org.apache.lucene.index.PKIndexSplitter.DocumentFilteredIndexReader
- All Implemented Interfaces:
- Closeable, Cloneable
- Enclosing class:
- PKIndexSplitter
public static class PKIndexSplitter.DocumentFilteredIndexReader
- extends FilterIndexReader
Methods inherited from class org.apache.lucene.index.FilterIndexReader |
addReaderFinishedListener, directory, docFreq, doClose, doCommit, document, doDelete, doSetNorm, doUndeleteAll, getCoreCacheKey, getDeletesCacheKey, getFieldNames, getTermFreqVector, getTermFreqVector, getTermFreqVector, getTermFreqVectors, getVersion, hasNorms, isCurrent, isOptimized, maxDoc, norms, norms, removeReaderFinishedListener, termDocs, termDocs, terms, terms, toString |
Methods inherited from class org.apache.lucene.index.IndexReader |
acquireWriteLock, clone, clone, close, commit, commit, decRef, deleteDocument, deleteDocuments, document, ensureOpen, flush, flush, getCommitUserData, getCommitUserData, getCurrentVersion, getIndexCommit, getRefCount, getTermInfosIndexDivisor, getUniqueTermCount, incRef, indexExists, lastModified, listCommits, main, notifyReaderFinishedListeners, numDeletedDocs, open, open, open, open, open, open, open, open, readerFinished, reopen, reopen, reopen, reopen, setNorm, setNorm, termPositions, undeleteAll |
PKIndexSplitter.DocumentFilteredIndexReader
public PKIndexSplitter.DocumentFilteredIndexReader(IndexReader reader,
Filter preserveFilter,
boolean negateFilter)
throws IOException
- Throws:
IOException
numDocs
public int numDocs()
- Description copied from class:
IndexReader
- Returns the number of documents in this index.
- Overrides:
numDocs
in class FilterIndexReader
hasDeletions
public boolean hasDeletions()
- Description copied from class:
IndexReader
- Returns true if any documents have been deleted
- Overrides:
hasDeletions
in class FilterIndexReader
isDeleted
public boolean isDeleted(int n)
- Description copied from class:
IndexReader
- Returns true if document n has been deleted
- Overrides:
isDeleted
in class FilterIndexReader
getSequentialSubReaders
public IndexReader[] getSequentialSubReaders()
- Description copied from class:
IndexReader
- Expert: returns the sequential sub readers that this
reader is logically composed of. For example,
IndexSearcher uses this API to drive searching by one
sub reader at a time. If this reader is not composed
of sequential child readers, it should return null.
If this method returns an empty array, that means this
reader is a null reader (for example a MultiReader
that has no sub readers).
NOTE: You should not try using sub-readers returned by
this method to make any changes (setNorm, deleteDocument,
etc.). While this might succeed for one composite reader
(like MultiReader), it will most likely lead to index
corruption for other readers (like DirectoryReader obtained
through IndexReader.open(org.apache.lucene.store.Directory)
. Use the parent reader directly.
- Overrides:
getSequentialSubReaders
in class FilterIndexReader
termPositions
public TermPositions termPositions()
throws IOException
- Description copied from class:
IndexReader
- Returns an unpositioned
TermPositions
enumerator.
- Overrides:
termPositions
in class FilterIndexReader
- Throws:
IOException
- if there is a low-level IO error
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.