Class Engine.SearcherSupplier

java.lang.Object
org.elasticsearch.index.engine.Engine.SearcherSupplier
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, Releasable
Enclosing class:
Engine

public abstract static class Engine.SearcherSupplier
extends java.lang.Object
implements Releasable
  • Constructor Summary

    Constructors 
    Constructor Description
    SearcherSupplier​(java.util.function.Function<Engine.Searcher,​Engine.Searcher> wrapper)  
  • Method Summary

    Modifier and Type Method Description
    Engine.Searcher acquireSearcher​(java.lang.String source)  
    protected abstract Engine.Searcher acquireSearcherInternal​(java.lang.String source)  
    void close()  
    protected abstract void doClose()  
    java.lang.String getCommitId()
    Returns a commit id associated with this searcher if it's opened from an index commit; otherwise, return null.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • acquireSearcher

      public final Engine.Searcher acquireSearcher​(java.lang.String source)
    • close

      public final void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in interface Releasable
    • doClose

      protected abstract void doClose()
    • acquireSearcherInternal

      protected abstract Engine.Searcher acquireSearcherInternal​(java.lang.String source)
    • getCommitId

      @Nullable public java.lang.String getCommitId()
      Returns a commit id associated with this searcher if it's opened from an index commit; otherwise, return null. Two searchers with the same commit id must have identical Lucene level indices (i.e., identical segments with same docs using same doc-ids).