Class FieldUsageTrackingDirectoryReader

java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.CompositeReader
org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.LeafReader>
org.apache.lucene.index.DirectoryReader
org.apache.lucene.index.FilterDirectoryReader
org.elasticsearch.search.internal.FieldUsageTrackingDirectoryReader
All Implemented Interfaces:
Closeable, AutoCloseable

public class FieldUsageTrackingDirectoryReader extends org.apache.lucene.index.FilterDirectoryReader
Wraps a DirectoryReader and tracks all access to fields, notifying a FieldUsageTrackingDirectoryReader.FieldUsageNotifier upon access.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    Nested classes/interfaces inherited from class org.apache.lucene.index.FilterDirectoryReader

    org.apache.lucene.index.FilterDirectoryReader.SubReaderWrapper

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

    org.apache.lucene.index.IndexReader.CacheHelper, org.apache.lucene.index.IndexReader.CacheKey, org.apache.lucene.index.IndexReader.ClosedListener
  • Field Summary

    Fields inherited from class org.apache.lucene.index.FilterDirectoryReader

    in

    Fields inherited from class org.apache.lucene.index.DirectoryReader

    directory

    Fields inherited from class org.apache.lucene.index.BaseCompositeReader

    subReadersSorter
  • Constructor Summary

    Constructors
    Constructor
    Description
    FieldUsageTrackingDirectoryReader(org.apache.lucene.index.DirectoryReader in, FieldUsageTrackingDirectoryReader.FieldUsageNotifier notifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.index.DirectoryReader
    doWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in)
     
    org.apache.lucene.index.IndexReader.CacheHelper
     

    Methods inherited from class org.apache.lucene.index.FilterDirectoryReader

    doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrap

    Methods inherited from class org.apache.lucene.index.DirectoryReader

    directory, indexExists, listCommits, open, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChanged

    Methods inherited from class org.apache.lucene.index.BaseCompositeReader

    docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, totalTermFreq

    Methods inherited from class org.apache.lucene.index.CompositeReader

    getContext, toString

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

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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • doWrapDirectoryReader

      protected org.apache.lucene.index.DirectoryReader doWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in) throws IOException
      Specified by:
      doWrapDirectoryReader in class org.apache.lucene.index.FilterDirectoryReader
      Throws:
      IOException
    • getReaderCacheHelper

      public org.apache.lucene.index.IndexReader.CacheHelper getReaderCacheHelper()
      Specified by:
      getReaderCacheHelper in class org.apache.lucene.index.IndexReader