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

Method get_index

src/mem_table.rs:100–103  ·  view source on GitHub ↗

Performs Binary Search to find a record in the MemTable. If the record is found `[Result::Ok]` is returned, with the index of record. If the record is not found then `[Result::Err]` is returned, with the index to insert the record at.

(&self, key: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

setMethod · 0.80
deleteMethod · 0.80
getMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected