Package org.apache.lucene.tests.index
Class AssertingLeafReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.LeafReader
org.apache.lucene.index.FilterLeafReader
org.apache.lucene.tests.index.AssertingLeafReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
FilterLeafReader
that can be used to apply additional checks for tests.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Wraps a BinaryDocValues but with additional assertsstatic class
Wraps a Bits but with additional assertsstatic class
Wraps a Fields but with additional assertsstatic class
Wraps aImpactsEnum
with additional checksstatic class
Wraps a NumericDocValues but with additional assertsstatic class
Wraps a SortedSetDocValues but with additional assertsstatic class
Wraps a docsenum with additional checksstatic class
Wraps a SortedDocValues but with additional assertsstatic class
Wraps a SortedNumericDocValues but with additional assertsstatic class
Wraps a SortedSetDocValues but with additional assertsstatic class
Wraps a Terms but with additional assertsNested classes/interfaces inherited from class org.apache.lucene.index.FilterLeafReader
FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnum
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener
-
Field Summary
Fields inherited from class org.apache.lucene.index.FilterLeafReader
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBinaryDocValues
(String field) getNormValues
(String field) getNumericDocValues
(String field) getPointValues
(String field) getSortedDocValues
(String field) getSortedNumericDocValues
(String field) getSortedSetDocValues
(String field) getTermVectors
(int docID) Methods inherited from class org.apache.lucene.index.FilterLeafReader
checkIntegrity, doClose, document, getDelegate, getFieldInfos, getMetaData, getVectorValues, maxDoc, numDocs, searchNearestVectors, toString, unwrap
Methods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, totalTermFreq
Methods inherited from class org.apache.lucene.index.IndexReader
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
-
Constructor Details
-
AssertingLeafReader
-
-
Method Details
-
terms
- Overrides:
terms
in classFilterLeafReader
- Throws:
IOException
-
getTermVectors
- Overrides:
getTermVectors
in classFilterLeafReader
- Throws:
IOException
-
getNumericDocValues
- Overrides:
getNumericDocValues
in classFilterLeafReader
- Throws:
IOException
-
getBinaryDocValues
- Overrides:
getBinaryDocValues
in classFilterLeafReader
- Throws:
IOException
-
getSortedDocValues
- Overrides:
getSortedDocValues
in classFilterLeafReader
- Throws:
IOException
-
getSortedNumericDocValues
- Overrides:
getSortedNumericDocValues
in classFilterLeafReader
- Throws:
IOException
-
getSortedSetDocValues
- Overrides:
getSortedSetDocValues
in classFilterLeafReader
- Throws:
IOException
-
getNormValues
- Overrides:
getNormValues
in classFilterLeafReader
- Throws:
IOException
-
getPointValues
- Overrides:
getPointValues
in classFilterLeafReader
- Throws:
IOException
-
getLiveDocs
- Overrides:
getLiveDocs
in classFilterLeafReader
-
getCoreCacheHelper
- Specified by:
getCoreCacheHelper
in classLeafReader
-
getReaderCacheHelper
- Specified by:
getReaderCacheHelper
in classIndexReader
-