DeleteResult¶
-
class
borneo.
DeleteResult
[source]¶ Bases:
borneo.operations.WriteResult
Represents the result of a
NoSQLHandle.delete()
operation.If the delete succeeded
get_success()
returns True. Information about the existing row on failure may be available usingget_existing_value()
andget_existing_version()
, depending on the use ofDeleteRequest.set_return_row()
.Methods Summary
get_existing_modification_time
()Returns the existing row modification time if available. get_existing_value
()Returns the existing row value if available. get_existing_version
()Returns the existing row Version
if available.get_read_kb
()Returns the read throughput consumed by this operation, in KBytes. get_read_units
()Returns the read throughput consumed by this operation, in read units. get_success
()Returns True if the delete operation succeeded. get_write_kb
()Returns the write throughput consumed by this operation, in KBytes. get_write_units
()Returns the write throughput consumed by this operation, in write units. Methods Documentation
-
get_existing_modification_time
()[source]¶ Returns the existing row modification time if available. It will be available if the target row exists and the operation failed because of a
Version
mismatch and the correspondingDeleteRequest
the methodDeleteRequest.set_return_row()
was called with a True value.Returns: the modification time in milliseconds since January 1, 1970 Return type: int Versionadded: 5.3.0
-
get_existing_value
()[source]¶ Returns the existing row value if available. It will be available if the target row exists and the operation failed because of a
Version
mismatch and the correspondingDeleteRequest
the methodDeleteRequest.set_return_row()
was called with a True value.Returns: the value. Return type: dict
-
get_existing_version
()[source]¶ Returns the existing row
Version
if available. It will be available if the target row exists and the operation failed because of aVersion
mismatch and the correspondingDeleteRequest
the methodDeleteRequest.set_return_row()
was called with a True value.Returns: the version. Return type: Version
-
get_read_kb
()[source]¶ 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 by
get_read_units()
which may be a larger number because this was an update operation.Returns: the read KBytes consumed. Return type: int
-
get_read_units
()[source]¶ Returns the read throughput consumed by this operation, in read units. This number may be larger than that returned by
get_read_kb()
because it was an update operation.Returns: the read units consumed. Return type: int
-
get_success
()[source]¶ Returns True if the delete operation succeeded.
Returns: True if the operation succeeded. Return type: bool
-