MCPcopy Create free account
hub / github.com/Fullstop000/wickdb / build_table

Function build_table

src/db/mod.rs:1429–1485  ·  view source on GitHub ↗

Build a Table file from the contents of `iter`. The generated file will be named according to `meta.number`. On success, the rest of meta will be filled with metadata about the generated table. If no data is present in iter, `meta.file_size` will be set to zero, and no Table file will be produced.

(
    options: Arc<Options<C>>,
    storage: &S,
    db_path: &str,
    table_cache: &TableCache<S, C>,
    iter: &mut dyn Iterator,
    meta: &mut FileMetaData,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

write_level0_filesMethod · 0.85

Calls 15

generate_filenameFunction · 0.85
cloneMethod · 0.80
file_sizeMethod · 0.80
new_iterMethod · 0.80
seek_to_firstMethod · 0.45
validMethod · 0.45
createMethod · 0.45
as_strMethod · 0.45
keyMethod · 0.45
addMethod · 0.45
valueMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected