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

Method overwrite

java/java/de/crupp/upscaledb/Cursor.java:291–298  ·  view source on GitHub ↗

Overwrites the current Record This method wraps the native ups_cursor_overwrite function. This function overwrites the record of the current item. More information: C docume

(byte[] record)

Source from the content-addressed store, hash-verified

289 * @param record the new Record of the item
290 */
291 public void overwrite(byte[] record)
292 throws DatabaseException {
293 if (record == null)
294 throw new NullPointerException();
295 int status = ups_cursor_overwrite(m_handle, record, 0);
296 if (status != 0)
297 throw new DatabaseException(status);
298 }
299
300 /**
301 * Searches a key and points the Cursor to this key

Callers 1

testOverwriteMethod · 0.95

Calls 1

ups_cursor_overwriteMethod · 0.95

Tested by 1

testOverwriteMethod · 0.76