Skip to main content

write_static_stored_file

Function write_static_stored_file 

Source
pub fn write_static_stored_file<E: Entry>(
    entries: &[E],
    file: &Path,
    flags: MetaEntryFlags,
    compression: Compression,
) -> Result<(StaticSortedFileBuilderMeta<'static>, File)>
Expand description

Writes an SST file from a pre-sorted slice of entries.

Entries must be sorted in (key-hash, key) order, the same contract as StreamingSstWriter::add.

This is a convenience wrapper around StreamingSstWriter for callers that already have all entries in memory.