Package oracle.nosql.driver.ops
Class DeleteResult
java.lang.Object
oracle.nosql.driver.ops.Result
oracle.nosql.driver.ops.WriteResult
oracle.nosql.driver.ops.DeleteResult
Represents the result of a 
NoSQLHandle.delete(oracle.nosql.driver.ops.DeleteRequest) operation.
 
 If the delete succeeded getSuccess() returns true.
 Information about the existing row on failure may be
 available using getExistingValue() and
.getExistingVersion(), depending on the use of
 DeleteRequest.setReturnRow(boolean).
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the existing modification time if available.Returns the existing row value if available.Returns the existing rowVersionif available.intReturns the read throughput consumed by this operation, in KBytes.intReturns the read throughput consumed by this operation, in read units.booleanReturns true if the delete operation succeeded.intReturns the write throughput consumed by this operation, in KBytes.intReturns the write throughput consumed by this operation, in write units.toString()Methods inherited from class oracle.nosql.driver.ops.ResultgetRateLimitDelayedMs, getRetryStats
- 
Constructor Details- 
DeleteResultpublic DeleteResult()
 
- 
- 
Method Details- 
getSuccesspublic boolean getSuccess()Returns true if the delete operation succeeded.- Returns:
- true if the operation succeeded
 
- 
getExistingVersionReturns the existing rowVersionif available. It will be available if the target row exists and the operation failed because of aVersionmismatch and the correspondingDeleteRequestthe methodDeleteRequest.setReturnRow(boolean)was called with a true value.- Returns:
- the Version
 
- 
getExistingValueReturns the existing row value if available. It will be available if the target row exists and the operation failed because of aVersionmismatch and the correspondingDeleteRequestthe methodDeleteRequest.setReturnRow(boolean)was called with a true value.- Returns:
- the value
 
- 
getExistingModificationTimepublic long getExistingModificationTime()Returns the existing modification time if available. This is available only if the target row exists and the operation failed because of aVersionmismatch and the correspondingDeleteRequestmethodDeleteRequest.setReturnRow(boolean)was called with a true value.- Returns:
- the modification time in milliseconds since Jan 1, 1970
- Since:
- 5.3.0
 
- 
getReadKBpublic int getReadKB()Returns the read throughput consumed by this operation, in KBytes. This is the actual amount of data read by the operation. The number of read units consumed is returned bygetReadUnits()which may be a larger number because this was an update operation.- Returns:
- the read KBytes consumed
 
- 
getWriteKBpublic int getWriteKB()Returns the write throughput consumed by this operation, in KBytes.- Returns:
- the write KBytes consumed
 
- 
getReadUnitspublic int getReadUnits()Returns the read throughput consumed by this operation, in read units. This number may be larger than that returned bygetReadKB()because it was an update operation.- Returns:
- the read units consumed
 
- 
getWriteUnitspublic int getWriteUnits()Returns the write throughput consumed by this operation, in write units.- Returns:
- the write units consumed
 
- 
toString
 
-