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

Method find

java/java/de/crupp/upscaledb/Cursor.java:315–322  ·  view source on GitHub ↗

Searches a key and points the Cursor to this key This method wraps the native ups_cursor_find function. Searches for an item in the Database and points the Cursor to this item. If the item could not be found, the Cursor is not modified. If the key has multiple duplicates, the Cursor is p

(byte[] key)

Source from the content-addressed store, hash-verified

313 * @param key the key to search for
314 */
315 public void find(byte[] key)
316 throws DatabaseException {
317 if (key == null)
318 throw new NullPointerException();
319 int status = ups_cursor_find(m_handle, key, 0);
320 if (status != 0)
321 throw new DatabaseException(status);
322 }
323
324 /**
325 * Inserts a Database item and points the Cursor to the inserted item

Callers 4

testFindMethod · 0.95
testEraseMethod · 0.95
testSelectRangeMethod · 0.95

Calls 1

ups_cursor_findMethod · 0.95

Tested by 4

testFindMethod · 0.76
testEraseMethod · 0.76
testSelectRangeMethod · 0.76