Package org.elasticsearch.index.engine
Class Engine.GetResult
java.lang.Object
org.elasticsearch.index.engine.Engine.GetResult
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.elasticsearch.common.lease.Releasable
- Enclosing class:
- Engine
public static class Engine.GetResult
extends java.lang.Object
implements org.elasticsearch.common.lease.Releasable
-
Field Summary
Fields Modifier and Type Field Description static Engine.GetResultNOT_EXISTS -
Constructor Summary
Constructors Constructor Description GetResult(Engine.Searcher searcher, VersionsAndSeqNoResolver.DocIdAndVersion docIdAndVersion, boolean fromTranslog) -
Method Summary
Modifier and Type Method Description voidclose()VersionsAndSeqNoResolver.DocIdAndVersiondocIdAndVersion()booleanexists()booleanisFromTranslog()Returnstrueiff the get was performed from a translog operation.Engine.Searchersearcher()longversion()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NOT_EXISTS
-
-
Constructor Details
-
GetResult
public GetResult(Engine.Searcher searcher, VersionsAndSeqNoResolver.DocIdAndVersion docIdAndVersion, boolean fromTranslog)
-
-
Method Details
-
exists
public boolean exists() -
version
public long version() -
isFromTranslog
public boolean isFromTranslog()Returnstrueiff the get was performed from a translog operation. Notes that this returnsfalseif the get was performed on an in-memory Lucene segment created from the corresponding translog operation. -
searcher
-
docIdAndVersion
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceorg.elasticsearch.common.lease.Releasable
-