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
public class AssertingLeafReader extends FilterLeafReader
AFilterLeafReaderthat can be used to apply additional checks for tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssertingLeafReader.AssertingBinaryDocValuesWraps a BinaryDocValues but with additional assertsstatic classAssertingLeafReader.AssertingBitsWraps a Bits but with additional assertsstatic classAssertingLeafReader.AssertingFieldsWraps a Fields but with additional assertsstatic classAssertingLeafReader.AssertingImpactsEnumWraps aImpactsEnumwith additional checksstatic classAssertingLeafReader.AssertingNumericDocValuesWraps a NumericDocValues but with additional assertsstatic classAssertingLeafReader.AssertingPointValuesWraps a SortedSetDocValues but with additional assertsstatic classAssertingLeafReader.AssertingPostingsEnumWraps a docsenum with additional checksstatic classAssertingLeafReader.AssertingSortedDocValuesWraps a SortedDocValues but with additional assertsstatic classAssertingLeafReader.AssertingSortedNumericDocValuesWraps a SortedNumericDocValues but with additional assertsstatic classAssertingLeafReader.AssertingSortedSetDocValuesWraps a SortedSetDocValues but with additional assertsstatic classAssertingLeafReader.AssertingStoredFieldsWraps a StoredFields but with additional assertsstatic classAssertingLeafReader.AssertingTermsWraps a Terms but with additional assertsstatic classAssertingLeafReader.AssertingTermVectorsWraps a TermVectors but with additional asserts-
Nested 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
Constructors Constructor Description AssertingLeafReader(LeafReader in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryDocValuesgetBinaryDocValues(String field)IndexReader.CacheHelpergetCoreCacheHelper()BitsgetLiveDocs()NumericDocValuesgetNormValues(String field)NumericDocValuesgetNumericDocValues(String field)PointValuesgetPointValues(String field)IndexReader.CacheHelpergetReaderCacheHelper()SortedDocValuesgetSortedDocValues(String field)SortedNumericDocValuesgetSortedNumericDocValues(String field)SortedSetDocValuesgetSortedSetDocValues(String field)FieldsgetTermVectors(int docID)StoredFieldsstoredFields()Termsterms(String field)TermVectorstermVectors()-
Methods inherited from class org.apache.lucene.index.FilterLeafReader
checkIntegrity, doClose, document, getByteVectorValues, getDelegate, getFieldInfos, getFloatVectorValues, getMetaData, maxDoc, numDocs, searchNearestVectors, searchNearestVectors, toString, unwrap
-
Methods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, searchNearestVectors, searchNearestVectors, 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 Detail
-
AssertingLeafReader
public AssertingLeafReader(LeafReader in)
-
-
Method Detail
-
terms
public Terms terms(String field) throws IOException
- Overrides:
termsin classFilterLeafReader- Throws:
IOException
-
getTermVectors
public Fields getTermVectors(int docID) throws IOException
- Overrides:
getTermVectorsin classFilterLeafReader- Throws:
IOException
-
termVectors
public TermVectors termVectors() throws IOException
- Overrides:
termVectorsin classFilterLeafReader- Throws:
IOException
-
storedFields
public StoredFields storedFields() throws IOException
- Overrides:
storedFieldsin classFilterLeafReader- Throws:
IOException
-
getNumericDocValues
public NumericDocValues getNumericDocValues(String field) throws IOException
- Overrides:
getNumericDocValuesin classFilterLeafReader- Throws:
IOException
-
getBinaryDocValues
public BinaryDocValues getBinaryDocValues(String field) throws IOException
- Overrides:
getBinaryDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedDocValues
public SortedDocValues getSortedDocValues(String field) throws IOException
- Overrides:
getSortedDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedNumericDocValues
public SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException
- Overrides:
getSortedNumericDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedSetDocValues
public SortedSetDocValues getSortedSetDocValues(String field) throws IOException
- Overrides:
getSortedSetDocValuesin classFilterLeafReader- Throws:
IOException
-
getNormValues
public NumericDocValues getNormValues(String field) throws IOException
- Overrides:
getNormValuesin classFilterLeafReader- Throws:
IOException
-
getPointValues
public PointValues getPointValues(String field) throws IOException
- Overrides:
getPointValuesin classFilterLeafReader- Throws:
IOException
-
getLiveDocs
public Bits getLiveDocs()
- Overrides:
getLiveDocsin classFilterLeafReader
-
getCoreCacheHelper
public IndexReader.CacheHelper getCoreCacheHelper()
- Specified by:
getCoreCacheHelperin classLeafReader
-
getReaderCacheHelper
public IndexReader.CacheHelper getReaderCacheHelper()
- Specified by:
getReaderCacheHelperin classIndexReader
-
-