DeleteResult¶
- class borneo.DeleteResult[source]¶
Bases:
WriteResultRepresents 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(),get_existing_version()andget_existing_modification_time(), depending on the use ofDeleteRequest.set_return_row().Methods Summary
Returns the existing row modification time if available.
Returns the existing row value if available.
Returns the existing row
Versionif available.Returns the read throughput consumed by this operation, in KBytes.
Returns the read throughput consumed by this operation, in read units.
Returns True if the delete operation succeeded.
Returns the write throughput consumed by this operation, in KBytes.
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. See
DeleteRequest.set_return_row()for conditions under which the information is available.- 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. See
DeleteRequest.set_return_row()for conditions under which the information is available.- Returns:
the value.
- Return type:
dict
- get_existing_version()[source]¶
Returns the existing row
Versionif available. SeeDeleteRequest.set_return_row()for conditions under which the information is available.- Returns:
the version.
- Return type:
- 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