Package org.elasticsearch.index.engine
Class EngineTestCase.MatchingDirectoryReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.CompositeReader
org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.LeafReader>
org.apache.lucene.index.DirectoryReader
org.apache.lucene.index.FilterDirectoryReader
org.elasticsearch.index.engine.EngineTestCase.MatchingDirectoryReader
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- EngineTestCase
public static final class EngineTestCase.MatchingDirectoryReader
extends org.apache.lucene.index.FilterDirectoryReader
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MatchingDirectoryReader(org.apache.lucene.index.DirectoryReader in, org.apache.lucene.search.Query query)
-
Method Summary
Modifier and Type Method Description protected org.apache.lucene.index.DirectoryReader
doWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in)
org.apache.lucene.index.IndexReader.CacheHelper
getReaderCacheHelper()
Methods inherited from class org.apache.lucene.index.FilterDirectoryReader
doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrap
Methods inherited from class org.apache.lucene.index.DirectoryReader
directory, indexExists, listCommits, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChanged
Methods inherited from class org.apache.lucene.index.BaseCompositeReader
docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreq
-
Constructor Details
-
MatchingDirectoryReader
public MatchingDirectoryReader(org.apache.lucene.index.DirectoryReader in, org.apache.lucene.search.Query query) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
doWrapDirectoryReader
protected org.apache.lucene.index.DirectoryReader doWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in) throws java.io.IOException- Specified by:
doWrapDirectoryReader
in classorg.apache.lucene.index.FilterDirectoryReader
- Throws:
java.io.IOException
-
getReaderCacheHelper
public org.apache.lucene.index.IndexReader.CacheHelper getReaderCacheHelper()- Specified by:
getReaderCacheHelper
in classorg.apache.lucene.index.IndexReader
-