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

Method new

src/sstable.rs:45–99  ·  view source on GitHub ↗

Flushes `memtable` to a new SSTable file under `dir/ / .sstable`. Entries are written in the sorted order of the MemTable. The offset of each entry is recorded so that [`get`](SSTable::get) can binary search without a full file scan.

(memtable: &MemTable, level: usize, dir: &Path)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

entriesMethod · 0.80
lenMethod · 0.80
flushMethod · 0.80

Tested by

no test coverage detected