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

Method find

java/java/de/crupp/upscaledb/Database.java:154–159  ·  view source on GitHub ↗

Searches an item in the Database, returns the record This method wraps the native ups_db_find function. This function searches the Database for a key. If the key is found, the method will return the record of this item. Database.find can not search for duplicate keys. If the

(Transaction txn, byte[] key)

Source from the content-addressed store, hash-verified

152 * @return the record of the item
153 */
154 public byte[] find(Transaction txn, byte[] key)
155 throws DatabaseException {
156 if (key == null)
157 throw new NullPointerException();
158 return ups_db_find(m_handle, txn != null ? txn.getHandle() : 0, key, 0);
159 }
160
161 /**
162 * Searches an item in the Database, returns the record

Callers 5

testBeginInsertAbortMethod · 0.95
testBeginInsertCommitMethod · 0.95
testRenameDatabaseMethod · 0.95
testSetComparator1Method · 0.95

Calls 2

ups_db_findMethod · 0.95
getHandleMethod · 0.45

Tested by 5

testBeginInsertAbortMethod · 0.76
testBeginInsertCommitMethod · 0.76
testRenameDatabaseMethod · 0.76
testSetComparator1Method · 0.76