Package org.elasticsearch.index.engine
Class Engine.GetResult
java.lang.Object
org.elasticsearch.index.engine.Engine.GetResult
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.elasticsearch.core.Releasable
- Enclosing class:
- Engine
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGetResult(Engine.Searcher searcher, VersionsAndSeqNoResolver.DocIdAndVersion docIdAndVersion, boolean fromTranslog)
-
Method Summary
-
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()Returnstrue
iff the get was performed from a translog operation. Notes that this returnsfalse
if the get was performed on an in-memory Lucene segment created from the corresponding translog operation. -
searcher
-
docIdAndVersion
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-