@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.FilterTermsEnum
LeafReader.CoreClosedListener
IndexReader.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, unwrap
addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreq
addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef
final 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.IOException
public FieldInfos getFieldInfos()
LeafReader
FieldInfos
describing all fields in
this reader.getFieldInfos
in class FilterLeafReader
public NumericDocValues getNumericDocValues(java.lang.String field) throws java.io.IOException
LeafReader
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 FilterLeafReader
java.io.IOException
public BinaryDocValues getBinaryDocValues(java.lang.String field) throws java.io.IOException
LeafReader
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 FilterLeafReader
java.io.IOException
public SortedDocValues getSortedDocValues(java.lang.String field) throws java.io.IOException
LeafReader
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 FilterLeafReader
java.io.IOException
public SortedSetDocValues getSortedSetDocValues(java.lang.String field) throws java.io.IOException
LeafReader
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 FilterLeafReader
java.io.IOException
public Bits getDocsWithField(java.lang.String field) throws java.io.IOException
LeafReader
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 FilterLeafReader
java.io.IOException
private UninvertingReader.Type getType(java.lang.String field)
public java.lang.Object getCoreCacheKey()
IndexReader
getCoreCacheKey
in class IndexReader
public java.lang.Object getCombinedCoreAndDeletesKey()
IndexReader
getCombinedCoreAndDeletesKey
in class IndexReader
public java.lang.String toString()
toString
in class FilterLeafReader
public static java.lang.String[] getUninvertedStats()