public final class MergingDirectoryReaderWrapper extends FilterDirectoryReader
DirectoryReader wrapper that uses the merge instances of the wrapped
CodecReaders.
NOTE: This class will fail to work if the leaves of the wrapped directory are
not codec readers.FilterDirectoryReader.SubReaderWrapperIndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListenerindirectorysubReadersSorter| Constructor and Description |
|---|
MergingDirectoryReaderWrapper(DirectoryReader in)
Wrap the given directory.
|
| Modifier and Type | Method and Description |
|---|---|
protected DirectoryReader |
doWrapDirectoryReader(DirectoryReader in) |
IndexReader.CacheHelper |
getReaderCacheHelper() |
doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrapdirectory, indexExists, listCommits, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChangeddocFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreqgetContext, toStringclose, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, tryIncRefpublic MergingDirectoryReaderWrapper(DirectoryReader in) throws IOException
IOExceptionprotected DirectoryReader doWrapDirectoryReader(DirectoryReader in) throws IOException
doWrapDirectoryReader in class FilterDirectoryReaderIOExceptionpublic IndexReader.CacheHelper getReaderCacheHelper()
getReaderCacheHelper in class IndexReaderCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.