Skip to main content

write_csr

Function write_csr 

Source
pub fn write_csr(path: &Path, csr: &CsrIndex) -> Result<(), GfError>
Expand description

Write csr to path as a single-batch Arrow IPC file (ADJACENCY_CSR_SCHEMA), atomically (sibling temp + rename, the same pattern as RewriteBatch; IPC files cannot reuse it directly because it encodes Parquet).

ยงErrors

Returns GfError::Storage if csr violates its invariants or on I/O/encode failure; on failure path is untouched.