@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.
|
FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnum
LeafReader.CoreClosedListener
IndexReader.ReaderClosedListener
in
Constructor and Description |
---|
UninvertingReader(LeafReader in,
Map<String,UninvertingReader.Type> mapping)
Deprecated.
Create a new UninvertingReader with the specified mapping
|
Modifier and Type | Method and Description |
---|---|
BinaryDocValues |
getBinaryDocValues(String field)
Deprecated.
Returns
BinaryDocValues for this field, or
null if no BinaryDocValues were indexed for
this field. |
Object |
getCombinedCoreAndDeletesKey()
Deprecated.
Expert: Returns a key for this IndexReader that also includes deletions,
so CachingWrapperFilter can find it again.
|
Object |
getCoreCacheKey()
Deprecated.
Expert: Returns a key for this IndexReader, so CachingWrapperFilter can find
it again.
|
Bits |
getDocsWithField(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(String field)
Deprecated.
Returns
NumericDocValues for this field, or
null if no NumericDocValues were indexed for
this field. |
SortedDocValues |
getSortedDocValues(String field)
Deprecated.
Returns
SortedDocValues for this field, or
null if no SortedDocValues were indexed for
this field. |
SortedSetDocValues |
getSortedSetDocValues(String field)
Deprecated.
Returns
SortedSetDocValues for this field, or
null if no SortedSetDocValues were indexed for
this field. |
static String[] |
getUninvertedStats()
Deprecated.
Return information about the backing cache
|
String |
toString()
Deprecated.
|
static DirectoryReader |
wrap(DirectoryReader in,
Map<String,UninvertingReader.Type> mapping)
Deprecated.
Wraps a provided DirectoryReader.
|
addCoreClosedListener, checkIntegrity, doClose, document, fields, getDelegate, getIndexSort, 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
public UninvertingReader(LeafReader in, Map<String,UninvertingReader.Type> mapping)
Expert: This should almost never be used. Use wrap(DirectoryReader, Map)
instead.
public static DirectoryReader wrap(DirectoryReader in, Map<String,UninvertingReader.Type> mapping) throws IOException
DirectoryReader.openIfChanged(DirectoryReader)
)
and so on.IOException
public FieldInfos getFieldInfos()
LeafReader
FieldInfos
describing all fields in
this reader.getFieldInfos
in class FilterLeafReader
public NumericDocValues getNumericDocValues(String field) throws 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
IOException
public BinaryDocValues getBinaryDocValues(String field) throws 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
IOException
public SortedDocValues getSortedDocValues(String field) throws 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
IOException
public SortedSetDocValues getSortedSetDocValues(String field) throws 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
IOException
public Bits getDocsWithField(String field) throws 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
IOException
public Object getCoreCacheKey()
IndexReader
getCoreCacheKey
in class IndexReader
public Object getCombinedCoreAndDeletesKey()
IndexReader
getCombinedCoreAndDeletesKey
in class IndexReader
public String toString()
toString
in class FilterLeafReader
public static String[] getUninvertedStats()