Package org.apache.lucene.tests.index
Class OwnCacheKeyMultiReader
- java.lang.Object
- 
- org.apache.lucene.index.IndexReader
- 
- org.apache.lucene.index.CompositeReader
- 
- org.apache.lucene.index.BaseCompositeReader<IndexReader>
- 
- org.apache.lucene.index.MultiReader
- 
- org.apache.lucene.tests.index.OwnCacheKeyMultiReader
 
 
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public final class OwnCacheKeyMultiReader extends MultiReader AMultiReaderthat has its own cache key, occasionally useful for testing purposes.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReaderIndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.lucene.index.BaseCompositeReadersubReadersSorter
 
- 
 - 
Constructor SummaryConstructors Constructor Description OwnCacheKeyMultiReader(IndexReader... subReaders)Sole constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexReader.CacheHelpergetReaderCacheHelper()protected voidnotifyReaderClosedListeners()- 
Methods inherited from class org.apache.lucene.index.MultiReaderdoClose
 - 
Methods inherited from class org.apache.lucene.index.BaseCompositeReaderdocFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, storedFields, termVectors, totalTermFreq
 - 
Methods inherited from class org.apache.lucene.index.CompositeReadergetContext, toString
 - 
Methods inherited from class org.apache.lucene.index.IndexReaderclose, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, tryIncRef
 
- 
 
- 
- 
- 
Constructor Detail- 
OwnCacheKeyMultiReaderpublic OwnCacheKeyMultiReader(IndexReader... subReaders) throws IOException Sole constructor.- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
getReaderCacheHelperpublic IndexReader.CacheHelper getReaderCacheHelper() - Overrides:
- getReaderCacheHelperin class- MultiReader
 
 - 
notifyReaderClosedListenersprotected void notifyReaderClosedListeners() throws IOException- Overrides:
- notifyReaderClosedListenersin class- IndexReader
- Throws:
- IOException
 
 
- 
 
-