Package org.elasticsearch.index.engine
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.SearcheracquireSearcher(java.lang.String source)protected abstract Engine.SearcheracquireSearcherInternal(java.lang.String source)voidclose()protected abstract voiddoClose()java.lang.StringgetSearcherId()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
-
SearcherSupplier
-
-
Method Details
-
acquireSearcher
-
close
public final void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-
doClose
protected abstract void doClose() -
acquireSearcherInternal
-
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).
-