MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / open

Method open

nodedb-vector/src/mmap_segment/reader.rs:76–78  ·  view source on GitHub ↗

Open an existing segment file and memory-map it.

(path: &Path)

Source from the content-addressed store, hash-verified

74
75 /// Open an existing segment file and memory-map it.
76 pub fn open(path: &Path) -> std::io::Result<Self> {
77 Self::open_with_policy(path, VectorSegmentDropPolicy::default())
78 }
79
80 /// Open an existing segment with an explicit drop policy.
81 pub fn open_with_policy(path: &Path, policy: VectorSegmentDropPolicy) -> std::io::Result<Self> {

Callers 3

write_segmentFunction · 0.45
open_with_policyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected