MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / erase

Method erase

java/java/de/crupp/upscaledb/Cursor.java:406–411  ·  view source on GitHub ↗

Erases the current key This method wraps the native ups_cursor_erase function. Erases a key from the Database. If the erase was successfull, the Cursor is invalidated, and does no longer point to any item. In case of an error, the Cursor is not modified. If the Database was opened with t

()

Source from the content-addressed store, hash-verified

404 * More information: <a href="http://files.upscaledb.com/documentation/html/group__ups__cursor.html#gaa1f88fb3a914a15339666519e4a180e1">C documentation</a>
405 */
406 public void erase()
407 throws DatabaseException {
408 int status = ups_cursor_erase(m_handle, 0);
409 if (status != 0)
410 throw new DatabaseException(status);
411 }
412
413 /**
414 * Returns the number of duplicate keys

Callers 1

testEraseMethod · 0.95

Calls 1

ups_cursor_eraseMethod · 0.95

Tested by 1

testEraseMethod · 0.76