@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.FilterTermsEnumLeafReader.CoreClosedListenerIndexReader.ReaderClosedListenerin| 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.
|
Object |
getCombinedCoreAndDeletesKey()
Deprecated.
|
Object |
getCoreCacheKey()
Deprecated.
|
Bits |
getDocsWithField(String field)
Deprecated.
|
FieldInfos |
getFieldInfos()
Deprecated.
|
NumericDocValues |
getNumericDocValues(String field)
Deprecated.
|
SortedDocValues |
getSortedDocValues(String field)
Deprecated.
|
SortedSetDocValues |
getSortedSetDocValues(String field)
Deprecated.
|
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, 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, tryIncRefpublic 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.IOExceptionpublic FieldInfos getFieldInfos()
getFieldInfos in class FilterLeafReaderpublic NumericDocValues getNumericDocValues(String field) throws IOException
getNumericDocValues in class FilterLeafReaderIOExceptionpublic BinaryDocValues getBinaryDocValues(String field) throws IOException
getBinaryDocValues in class FilterLeafReaderIOExceptionpublic SortedDocValues getSortedDocValues(String field) throws IOException
getSortedDocValues in class FilterLeafReaderIOExceptionpublic SortedSetDocValues getSortedSetDocValues(String field) throws IOException
getSortedSetDocValues in class FilterLeafReaderIOExceptionpublic Bits getDocsWithField(String field) throws IOException
getDocsWithField in class FilterLeafReaderIOExceptionpublic Object getCoreCacheKey()
getCoreCacheKey in class IndexReaderpublic Object getCombinedCoreAndDeletesKey()
getCombinedCoreAndDeletesKey in class IndexReaderpublic String toString()
toString in class FilterLeafReaderpublic static String[] getUninvertedStats()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.