public class ThrowingLeafReaderWrapper extends FilterLeafReader
Modifier and Type | Class and Description |
---|---|
static class |
ThrowingLeafReaderWrapper.Flags
Flags passed to
ThrowingLeafReaderWrapper.Thrower.maybeThrow(org.elasticsearch.test.engine.ThrowingLeafReaderWrapper.Flags)
when the corresponding method is called. |
static interface |
ThrowingLeafReaderWrapper.Thrower
A callback interface that allows to throw certain exceptions for
methods called on the IndexReader that is wrapped by
ThrowingLeafReaderWrapper |
static class |
ThrowingLeafReaderWrapper.ThrowingFields
Wraps a Fields but with additional asserts
|
static class |
ThrowingLeafReaderWrapper.ThrowingTerms
Wraps a Terms but with additional asserts
|
FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnum
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener
in
Constructor and Description |
---|
ThrowingLeafReaderWrapper(LeafReader in,
ThrowingLeafReaderWrapper.Thrower thrower) |
Modifier and Type | Method and Description |
---|---|
BinaryDocValues |
getBinaryDocValues(java.lang.String field) |
IndexReader.CacheHelper |
getCoreCacheHelper() |
NumericDocValues |
getNormValues(java.lang.String field) |
NumericDocValues |
getNumericDocValues(java.lang.String field) |
IndexReader.CacheHelper |
getReaderCacheHelper() |
SortedDocValues |
getSortedDocValues(java.lang.String field) |
SortedSetDocValues |
getSortedSetDocValues(java.lang.String field) |
Fields |
getTermVectors(int docID) |
Terms |
terms(java.lang.String field) |
checkIntegrity, doClose, document, getDelegate, getFieldInfos, getLiveDocs, getMetaData, getPointValues, getSortedNumericDocValues, maxDoc, numDocs, toString, unwrap
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, totalTermFreq
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, tryIncRef
public ThrowingLeafReaderWrapper(LeafReader in, ThrowingLeafReaderWrapper.Thrower thrower)
public Terms terms(java.lang.String field) throws java.io.IOException
terms
in class FilterLeafReader
java.io.IOException
public Fields getTermVectors(int docID) throws java.io.IOException
getTermVectors
in class FilterLeafReader
java.io.IOException
public NumericDocValues getNumericDocValues(java.lang.String field) throws java.io.IOException
getNumericDocValues
in class FilterLeafReader
java.io.IOException
public BinaryDocValues getBinaryDocValues(java.lang.String field) throws java.io.IOException
getBinaryDocValues
in class FilterLeafReader
java.io.IOException
public SortedDocValues getSortedDocValues(java.lang.String field) throws java.io.IOException
getSortedDocValues
in class FilterLeafReader
java.io.IOException
public SortedSetDocValues getSortedSetDocValues(java.lang.String field) throws java.io.IOException
getSortedSetDocValues
in class FilterLeafReader
java.io.IOException
public NumericDocValues getNormValues(java.lang.String field) throws java.io.IOException
getNormValues
in class FilterLeafReader
java.io.IOException
public IndexReader.CacheHelper getCoreCacheHelper()
getCoreCacheHelper
in class LeafReader
public IndexReader.CacheHelper getReaderCacheHelper()
getReaderCacheHelper
in class IndexReader