MCPcopy Create free account
hub / github.com/adambcomer/database-engine / get

Method get

src/sstable.rs:186–248  ·  view source on GitHub ↗

Searches for `key` using binary search over the offset index. Returns: - `Ok(Some(entry))` if the key is found. For deleted keys, `entry.value` is `None`. - `Ok(None)` if the key is not present in this table. - `Err(_)` on I/O failure.

(&mut self, key: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

test_getFunction · 0.45
test_get_deleted_entryFunction · 0.45
test_read_wal_oneFunction · 0.45
test_read_wal_multipleFunction · 0.45

Calls 1

lenMethod · 0.80

Tested by 4

test_getFunction · 0.36
test_get_deleted_entryFunction · 0.36
test_read_wal_oneFunction · 0.36
test_read_wal_multipleFunction · 0.36