Engine.DeleteResult
, Engine.IndexResult
, Engine.NoOpResult
public abstract static class Engine.Result
extends java.lang.Object
Engine.Operation
Modifier and Type | Class | Description |
---|---|---|
static class |
Engine.Result.Type |
Modifier | Constructor | Description |
---|---|---|
protected |
Result(Engine.Operation.TYPE operationType,
long version,
long seqNo) |
|
protected |
Result(Engine.Operation.TYPE operationType,
java.lang.Exception failure,
long version,
long seqNo) |
|
protected |
Result(Engine.Operation.TYPE operationType,
Mapping requiredMappingUpdate) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Exception |
getFailure() |
get document failure while executing the operation
null in case of no failure |
Engine.Operation.TYPE |
getOperationType() |
|
Mapping |
getRequiredMappingUpdate() |
If the operation was aborted due to missing mappings, this method will return the mappings
that are required to complete the operation.
|
Engine.Result.Type |
getResultType() |
whether the operation was successful, has failed or was aborted due to a mapping update
|
long |
getSeqNo() |
Get the sequence number on the primary.
|
long |
getTook() |
get total time in nanoseconds
|
Translog.Location |
getTranslogLocation() |
get the translog location after executing the operation
|
long |
getVersion() |
get the updated document version
|
protected Result(Engine.Operation.TYPE operationType, java.lang.Exception failure, long version, long seqNo)
protected Result(Engine.Operation.TYPE operationType, long version, long seqNo)
protected Result(Engine.Operation.TYPE operationType, Mapping requiredMappingUpdate)
public Engine.Result.Type getResultType()
public long getVersion()
public long getSeqNo()
public Mapping getRequiredMappingUpdate()
public Translog.Location getTranslogLocation()
public java.lang.Exception getFailure()
null
in case of no failurepublic long getTook()
public Engine.Operation.TYPE getOperationType()