@Deprecated public class UninvertingReader extends FilterLeafReader
This is accomplished by "inverting the inverted index" or "uninversion".
The uninversion process happens lazily: upon the first request for the
field's docvalues (e.g. via LeafReader.getNumericDocValues(String)
or similar), it will create the docvalues on-the-fly if needed and cache it,
based on the core cache key of the wrapped LeafReader.
| Modifier and Type | Class and Description |
|---|---|
static class |
UninvertingReader.Type
Deprecated.
Specifies the type of uninversion to apply for the field.
|
(package private) static class |
UninvertingReader.UninvertingDirectoryReader
Deprecated.
|
FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnumLeafReader.CoreClosedListenerIndexReader.ReaderClosedListener| Modifier and Type | Field and Description |
|---|---|
(package private) FieldInfos |
fieldInfos
Deprecated.
|
(package private) java.util.Map<java.lang.String,UninvertingReader.Type> |
mapping
Deprecated.
|
in| Constructor and Description |
|---|
UninvertingReader(LeafReader in,
java.util.Map<java.lang.String,UninvertingReader.Type> mapping)
Deprecated.
Create a new UninvertingReader with the specified mapping
|
| Modifier and Type | Method and Description |
|---|---|
BinaryDocValues |
getBinaryDocValues(java.lang.String field)
Deprecated.
Returns
BinaryDocValues for this field, or
null if no BinaryDocValues were indexed for
this field. |
java.lang.Object |
getCombinedCoreAndDeletesKey()
Deprecated.
Expert: Returns a key for this IndexReader that also includes deletions,
so CachingWrapperFilter can find it again.
|
java.lang.Object |
getCoreCacheKey()
Deprecated.
Expert: Returns a key for this IndexReader, so CachingWrapperFilter can find
it again.
|
Bits |
getDocsWithField(java.lang.String field)
Deprecated.
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. |
FieldInfos |
getFieldInfos()
Deprecated.
Get the
FieldInfos describing all fields in
this reader. |
NumericDocValues |
getNumericDocValues(java.lang.String field)
Deprecated.
Returns
NumericDocValues for this field, or
null if no NumericDocValues were indexed for
this field. |
SortedDocValues |
getSortedDocValues(java.lang.String field)
Deprecated.
Returns
SortedDocValues for this field, or
null if no SortedDocValues were indexed for
this field. |
SortedSetDocValues |
getSortedSetDocValues(java.lang.String field)
Deprecated.
Returns
SortedSetDocValues for this field, or
null if no SortedSetDocValues were indexed for
this field. |
private UninvertingReader.Type |
getType(java.lang.String field)
Deprecated.
Returns the field's uninversion type, or null
if the field doesn't exist or doesn't have a mapping.
|
static java.lang.String[] |
getUninvertedStats()
Deprecated.
Return information about the backing cache
|
java.lang.String |
toString()
Deprecated.
|
static DirectoryReader |
wrap(DirectoryReader in,
java.util.Map<java.lang.String,UninvertingReader.Type> mapping)
Deprecated.
Wraps a provided DirectoryReader.
|
addCoreClosedListener, checkIntegrity, doClose, document, fields, getDelegate, getLiveDocs, getNormValues, getPointValues, getSortedNumericDocValues, getTermVectors, maxDoc, numDocs, removeCoreClosedListener, unwrapaddCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreqaddReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncReffinal java.util.Map<java.lang.String,UninvertingReader.Type> mapping
final FieldInfos fieldInfos
public UninvertingReader(LeafReader in, java.util.Map<java.lang.String,UninvertingReader.Type> mapping)
Expert: This should almost never be used. Use wrap(DirectoryReader, Map)
instead.
public static DirectoryReader wrap(DirectoryReader in, java.util.Map<java.lang.String,UninvertingReader.Type> mapping) throws java.io.IOException
DirectoryReader.openIfChanged(DirectoryReader))
and so on.java.io.IOExceptionpublic FieldInfos getFieldInfos()
LeafReaderFieldInfos describing all fields in
this reader.getFieldInfos in class FilterLeafReaderpublic NumericDocValues getNumericDocValues(java.lang.String field) throws java.io.IOException
LeafReaderNumericDocValues 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 FilterLeafReaderjava.io.IOExceptionpublic BinaryDocValues getBinaryDocValues(java.lang.String field) throws java.io.IOException
LeafReaderBinaryDocValues 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 FilterLeafReaderjava.io.IOExceptionpublic SortedDocValues getSortedDocValues(java.lang.String field) throws java.io.IOException
LeafReaderSortedDocValues 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 FilterLeafReaderjava.io.IOExceptionpublic SortedSetDocValues getSortedSetDocValues(java.lang.String field) throws java.io.IOException
LeafReaderSortedSetDocValues 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 FilterLeafReaderjava.io.IOExceptionpublic Bits getDocsWithField(java.lang.String field) throws java.io.IOException
LeafReaderBits 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 FilterLeafReaderjava.io.IOExceptionprivate UninvertingReader.Type getType(java.lang.String field)
public java.lang.Object getCoreCacheKey()
IndexReadergetCoreCacheKey in class IndexReaderpublic java.lang.Object getCombinedCoreAndDeletesKey()
IndexReadergetCombinedCoreAndDeletesKey in class IndexReaderpublic java.lang.String toString()
toString in class FilterLeafReaderpublic static java.lang.String[] getUninvertedStats()