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 getSearcherId()
    Returns an id associated with this searcher if exists.

    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)
    • getSearcherId

      @Nullable public java.lang.String getSearcherId()
      Returns an id associated with this searcher if exists. Two searchers with the same searcher id must have identical Lucene level indices (i.e., identical segments with same docs using same doc-ids).