org.apache.lucene.uninverting

## Class UninvertingReader

- java.lang.Object
- - org.apache.lucene.index.IndexReader
  - - org.apache.lucene.index.LeafReader
    - - org.apache.lucene.index.FilterLeafReader
      - - org.apache.lucene.uninverting.UninvertingReader

- All Implemented Interfaces:
    Closeable, AutoCloseable

  Deprecated.
  This will be removed in Lucene 7.0.

      @Deprecated
      public class UninvertingReader
      extends FilterLeafReader

  A FilterReader that exposes indexed values as if they also had docvalues.

  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.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `UninvertingReader.Type` Deprecated. Specifies the type of uninversion to apply for the field.

    - ### Nested classes/interfaces inherited from class org.apache.lucene.index.FilterLeafReader

      `FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnum`

    - ### Nested classes/interfaces inherited from class org.apache.lucene.index.LeafReader

      `LeafReader.CoreClosedListener`

    - ### Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader

      `IndexReader.ReaderClosedListener`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.index.FilterLeafReader

      `in`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UninvertingReader(LeafReader in, Map<String,UninvertingReader.Type> mapping)` Deprecated. Create a new UninvertingReader with the specified mapping

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    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.

    - ### Methods inherited from class org.apache.lucene.index.FilterLeafReader

      `addCoreClosedListener, checkIntegrity, doClose, document, fields, getDelegate, getIndexSort, getLiveDocs, getNormValues, getPointValues, getSortedNumericDocValues, getTermVectors, maxDoc, numDocs, removeCoreClosedListener, unwrap`

    - ### Methods inherited from class org.apache.lucene.index.LeafReader

      `addCoreClosedListenerAsReaderClosedListener, docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, removeCoreClosedListenerAsReaderClosedListener, terms, totalTermFreq`

    - ### Methods inherited from class org.apache.lucene.index.IndexReader

      `addReaderClosedListener, close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### UninvertingReader

          public UninvertingReader(LeafReader in,
                                   Map<String,UninvertingReader.Type> mapping)

      Deprecated.
      Create a new UninvertingReader with the specified mapping

      Expert: This should almost never be used. Use `wrap(DirectoryReader, Map)` instead.

      NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

  - ### Method Detail

    - #### wrap

          public static DirectoryReader wrap(DirectoryReader in,
                                             Map<String,UninvertingReader.Type> mapping)
                                      throws IOException

      Deprecated.
      Wraps a provided DirectoryReader. Note that for convenience, the returned reader can be used normally (e.g. passed to `DirectoryReader.openIfChanged(DirectoryReader)`) and so on.
      Throws:
        `IOException`

    - #### getFieldInfos

          public FieldInfos getFieldInfos()

      Deprecated.
      Overrides:
        `getFieldInfos` in class `FilterLeafReader`

    - #### getNumericDocValues

          public NumericDocValues getNumericDocValues(String field)
                                               throws IOException

      Deprecated.
      Overrides:
        `getNumericDocValues` in class `FilterLeafReader`
      Throws:
        `IOException`

    - #### getBinaryDocValues

          public BinaryDocValues getBinaryDocValues(String field)
                                             throws IOException

      Deprecated.
      Overrides:
        `getBinaryDocValues` in class `FilterLeafReader`
      Throws:
        `IOException`

    - #### getSortedDocValues

          public SortedDocValues getSortedDocValues(String field)
                                             throws IOException

      Deprecated.
      Overrides:
        `getSortedDocValues` in class `FilterLeafReader`
      Throws:
        `IOException`

    - #### getSortedSetDocValues

          public SortedSetDocValues getSortedSetDocValues(String field)
                                                   throws IOException

      Deprecated.
      Overrides:
        `getSortedSetDocValues` in class `FilterLeafReader`
      Throws:
        `IOException`

    - #### getDocsWithField

          public Bits getDocsWithField(String field)
                                throws IOException

      Deprecated.
      Overrides:
        `getDocsWithField` in class `FilterLeafReader`
      Throws:
        `IOException`

    - #### getCoreCacheKey

          public Object getCoreCacheKey()

      Deprecated.
      Overrides:
        `getCoreCacheKey` in class `IndexReader`

    - #### getCombinedCoreAndDeletesKey

          public Object getCombinedCoreAndDeletesKey()

      Deprecated.
      Overrides:
        `getCombinedCoreAndDeletesKey` in class `IndexReader`

    - #### toString

          public String toString()

      Deprecated.
      Overrides:
        `toString` in class `FilterLeafReader`

    - #### getUninvertedStats

          public static String[] getUninvertedStats()

      Deprecated.
      Return information about the backing cache
      NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.