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.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
-
SearcherSupplier
-
-
Method Details
-
acquireSearcher
-
close
public final void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in 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).
-