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.FilterTermsEnum
AtomicReader.CoreClosedListener
IndexReader.ReaderClosedListener
in
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, unwrap
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, hasNorms, removeCoreClosedListenerAsReaderClosedListener, termDocsEnum, termPositionsEnum, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, open, open, open, open, open, registerParentReader, removeReaderClosedListener, tryIncRef
public AssertingAtomicReader(AtomicReader in)
public Fields fields() throws IOException
AtomicReader
Fields
for this reader.
This method may return null if the reader has no
postings.fields
in class FilterAtomicReader
IOException
public Fields getTermVectors(int docID) throws IOException
IndexReader
getTermVectors
in class FilterAtomicReader
IOException
public NumericDocValues getNumericDocValues(String field) throws IOException
AtomicReader
NumericDocValues
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 FilterAtomicReader
IOException
public BinaryDocValues getBinaryDocValues(String field) throws IOException
AtomicReader
BinaryDocValues
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 FilterAtomicReader
IOException
public SortedDocValues getSortedDocValues(String field) throws IOException
AtomicReader
SortedDocValues
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 FilterAtomicReader
IOException
public SortedNumericDocValues getSortedNumericDocValues(String field) throws IOException
AtomicReader
SortedNumericDocValues
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 FilterAtomicReader
IOException
public SortedSetDocValues getSortedSetDocValues(String field) throws IOException
AtomicReader
SortedSetDocValues
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 FilterAtomicReader
IOException
public NumericDocValues getNormValues(String field) throws IOException
AtomicReader
NumericDocValues
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 FilterAtomicReader
IOException
public Bits getLiveDocs()
AtomicReader
Bits
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 FilterAtomicReader
public Bits getDocsWithField(String field) throws IOException
AtomicReader
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. The
returned instance should only be used by a single threadgetDocsWithField
in class FilterAtomicReader
IOException
public Object getCoreCacheKey()
IndexReader
getCoreCacheKey
in class IndexReader
public Object getCombinedCoreAndDeletesKey()
IndexReader
getCombinedCoreAndDeletesKey
in class IndexReader
Copyright © 2000–2024 The Apache Software Foundation. All rights reserved.