public class ThrowingLeafReaderWrapper
extends org.apache.lucene.index.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
|
org.apache.lucene.index.FilterLeafReader.FilterFields, org.apache.lucene.index.FilterLeafReader.FilterPostingsEnum, org.apache.lucene.index.FilterLeafReader.FilterTerms, org.apache.lucene.index.FilterLeafReader.FilterTermsEnum
Constructor and Description |
---|
ThrowingLeafReaderWrapper(org.apache.lucene.index.LeafReader in,
ThrowingLeafReaderWrapper.Thrower thrower) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.Fields |
fields() |
org.apache.lucene.index.BinaryDocValues |
getBinaryDocValues(java.lang.String field) |
org.apache.lucene.index.NumericDocValues |
getNormValues(java.lang.String field) |
org.apache.lucene.index.NumericDocValues |
getNumericDocValues(java.lang.String field) |
org.apache.lucene.index.SortedDocValues |
getSortedDocValues(java.lang.String field) |
org.apache.lucene.index.SortedSetDocValues |
getSortedSetDocValues(java.lang.String field) |
org.apache.lucene.index.Fields |
getTermVectors(int docID) |
addCoreClosedListener, checkIntegrity, doClose, document, getDelegate, getDocsWithField, getFieldInfos, getIndexSort, getLiveDocs, getPointValues, getSortedNumericDocValues, maxDoc, numDocs, removeCoreClosedListener, toString, unwrap
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
public ThrowingLeafReaderWrapper(org.apache.lucene.index.LeafReader in, ThrowingLeafReaderWrapper.Thrower thrower)
public org.apache.lucene.index.Fields fields() throws java.io.IOException
fields
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.Fields getTermVectors(int docID) throws java.io.IOException
getTermVectors
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.NumericDocValues getNumericDocValues(java.lang.String field) throws java.io.IOException
getNumericDocValues
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.BinaryDocValues getBinaryDocValues(java.lang.String field) throws java.io.IOException
getBinaryDocValues
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.SortedDocValues getSortedDocValues(java.lang.String field) throws java.io.IOException
getSortedDocValues
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(java.lang.String field) throws java.io.IOException
getSortedSetDocValues
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException
public org.apache.lucene.index.NumericDocValues getNormValues(java.lang.String field) throws java.io.IOException
getNormValues
in class org.apache.lucene.index.FilterLeafReader
java.io.IOException