public static class Engine.GetResult extends java.lang.Object implements Releasable
Modifier and Type | Field and Description |
---|---|
static Engine.GetResult |
NOT_EXISTS |
Constructor and Description |
---|
GetResult(boolean exists,
long version,
Translog.Source source)
Build a realtime get result from the translog.
|
GetResult(Engine.Searcher searcher,
Versions.DocIdAndVersion docIdAndVersion)
Build a non-realtime get result from the searcher.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Versions.DocIdAndVersion |
docIdAndVersion() |
boolean |
exists() |
void |
release() |
Engine.Searcher |
searcher() |
Translog.Source |
source() |
long |
version() |
public static final Engine.GetResult NOT_EXISTS
public GetResult(boolean exists, long version, @Nullable Translog.Source source)
public GetResult(Engine.Searcher searcher, Versions.DocIdAndVersion docIdAndVersion)
public boolean exists()
public long version()
@Nullable public Translog.Source source()
public Engine.Searcher searcher()
public Versions.DocIdAndVersion docIdAndVersion()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface Releasable
public void release()