public class AssertingAtomicReader extends FilterAtomicReader
FilterAtomicReader that can be used to apply
additional checks for tests.| Modifier and Type | Class and Description |
|---|---|
static class |
AssertingAtomicReader.AssertingBinaryDocValues
Wraps a BinaryDocValues but with additional asserts
|
static class |
AssertingAtomicReader.AssertingBits
Wraps a Bits but with additional asserts
|
static class |
AssertingAtomicReader.AssertingDocsEnum
Wraps a docsenum with additional checks
|
static class |
AssertingAtomicReader.AssertingFields
Wraps a Fields but with additional asserts
|
static class |
AssertingAtomicReader.AssertingNumericDocValues
Wraps a NumericDocValues but with additional asserts
|
static class |
AssertingAtomicReader.AssertingSortedDocValues
Wraps a SortedDocValues but with additional asserts
|
static class |
AssertingAtomicReader.AssertingSortedNumericDocValues
Wraps a SortedSetDocValues but with additional asserts
|
static class |
AssertingAtomicReader.AssertingSortedSetDocValues
Wraps a SortedSetDocValues but with additional asserts
|
static class |
AssertingAtomicReader.AssertingTerms
Wraps a Terms but with additional asserts
|
FilterAtomicReader.FilterDocsAndPositionsEnum, FilterAtomicReader.FilterDocsEnum, FilterAtomicReader.FilterFields, FilterAtomicReader.FilterTerms, FilterAtomicReader.FilterTermsEnumAtomicReader.CoreClosedListenerIndexReader.ReaderClosedListenerin| Constructor and Description |
|---|
AssertingAtomicReader(AtomicReader in) |
| Modifier and Type | Method and Description |
|---|---|
Fields |
fields()
Returns
Fields for this reader. |
BinaryDocValues |
getBinaryDocValues(String field)
Returns
BinaryDocValues for this field, or
null if no BinaryDocValues were indexed for
this field. |
Object |
getCombinedCoreAndDeletesKey()
Expert: Returns a key for this IndexReader that also includes deletions,
so FieldCache/CachingWrapperFilter can find it again.
|
Object |
getCoreCacheKey()
Expert: Returns a key for this IndexReader, so FieldCache/CachingWrapperFilter can find
it again.
|
Bits |
getDocsWithField(String field)
Returns a
Bits at the size of reader.maxDoc(),
with turned on bits for each docid that does have a value for this field,
or null if no DocValues were indexed for this field. |
Bits |
getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
NumericDocValues |
getNormValues(String field)
Returns
NumericDocValues representing norms
for this field, or null if no NumericDocValues
were indexed. |
NumericDocValues |
getNumericDocValues(String field)
Returns
NumericDocValues for this field, or
null if no NumericDocValues were indexed for
this field. |
SortedDocValues |
getSortedDocValues(String field)
Returns
SortedDocValues for this field, or
null if no SortedDocValues were indexed for
this field. |
SortedNumericDocValues |
getSortedNumericDocValues(String field)
Returns
SortedNumericDocValues for this field, or
null if no SortedNumericDocValues were indexed for
this field. |
SortedSetDocValues |
getSortedSetDocValues(String field)
Returns
SortedSetDocValues for this field, or
null if no SortedSetDocValues were indexed for
this field. |
Fields |
getTermVectors(int docID)
Retrieve term vectors for this document, or null if
term vectors were not indexed.
|
addCoreClosedListener, checkIntegrity, doClose, document, getFieldInfos, maxDoc, numDocs, removeCoreClosedListener, toString, unwrapaddCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, hasNorms, removeCoreClosedListenerAsReaderClosedListener, termDocsEnum, termPositionsEnum, terms, totalTermFreqaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, open, open, open, open, open, registerParentReader, removeReaderClosedListener, tryIncRefpublic AssertingAtomicReader(AtomicReader in)
public Fields fields() throws IOException
AtomicReaderFields for this reader.
This method may return null if the reader has no
postings.fields in class FilterAtomicReaderIOExceptionpublic Fields getTermVectors(int docID) throws IOException
IndexReadergetTermVectors in class FilterAtomicReaderIOExceptionpublic NumericDocValues getNumericDocValues(String field) throws IOException
AtomicReaderNumericDocValues for this field, or
null if no NumericDocValues were indexed for
this field. The returned instance should only be
used by a single thread.getNumericDocValues in class FilterAtomicReaderIOExceptionpublic BinaryDocValues getBinaryDocValues(String field) throws IOException
AtomicReaderBinaryDocValues for this field, or
null if no BinaryDocValues were indexed for
this field. The returned instance should only be
used by a single thread.getBinaryDocValues in class FilterAtomicReaderIOExceptionpublic SortedDocValues getSortedDocValues(String field) throws IOException
AtomicReaderSortedDocValues for this field, or
null if no SortedDocValues were indexed for
this field. The returned instance should only be
used by a single thread.getSortedDocValues in class FilterAtomicReaderIOExceptionpublic SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException
AtomicReaderSortedNumericDocValues for this field, or
null if no SortedNumericDocValues were indexed for
this field. The returned instance should only be
used by a single thread.getSortedNumericDocValues in class FilterAtomicReaderIOExceptionpublic SortedSetDocValues getSortedSetDocValues(String field) throws IOException
AtomicReaderSortedSetDocValues for this field, or
null if no SortedSetDocValues were indexed for
this field. The returned instance should only be
used by a single thread.getSortedSetDocValues in class FilterAtomicReaderIOExceptionpublic NumericDocValues getNormValues(String field) throws IOException
AtomicReaderNumericDocValues representing norms
for this field, or null if no NumericDocValues
were indexed. The returned instance should only be
used by a single thread.getNormValues in class FilterAtomicReaderIOExceptionpublic Bits getLiveDocs()
AtomicReaderBits representing live (not
deleted) docs. A set bit indicates the doc ID has not
been deleted. If this method returns null it means
there are no deleted documents (all documents are
live).
The returned instance has been safely published for
use by multiple threads without additional
synchronization.getLiveDocs in class FilterAtomicReaderpublic Bits getDocsWithField(String field) throws IOException
AtomicReaderBits at the size of reader.maxDoc(),
with turned on bits for each docid that does have a value for this field,
or null if no DocValues were indexed for this field. The
returned instance should only be used by a single threadgetDocsWithField in class FilterAtomicReaderIOExceptionpublic Object getCoreCacheKey()
IndexReadergetCoreCacheKey in class IndexReaderpublic Object getCombinedCoreAndDeletesKey()
IndexReadergetCombinedCoreAndDeletesKey in class IndexReaderCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.