Skip to main content

create_sparse_streaming_empty

Function create_sparse_streaming_empty 

Source
pub fn create_sparse_streaming_empty(
    backend_file: Option<&str>,
    backend: Option<&SparseIoBackend>,
) -> Result<Box<dyn SparseIo<IndexIter = Vec<usize>>>>
Expand description

Create an empty sparse backend ready for streaming CSC writes.

The returned backend has no data yet — the caller is expected to drive SparseIo::begin_streaming_csc, one or more SparseIo::append_csc_slab calls, SparseIo::finalize_streaming_csc, and finally SparseIo::build_csr_from_csc_streaming.