MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / segment_path

Method segment_path

crates/commitlog/src/repo/fs.rs:103–105  ·  view source on GitHub ↗

Get the filename for a segment starting with `offset` within this repository.

(&self, offset: u64)

Source from the content-addressed store, hash-verified

101 /// Get the filename for a segment starting with `offset` within this
102 /// repository.
103 pub fn segment_path(&self, offset: u64) -> SegmentFile {
104 self.root.segment(offset)
105 }
106
107 /// Determine the size on disk as the sum of the sizes of all segments, as
108 /// well as offset indexes.

Callers 8

size_on_diskMethod · 0.80
create_segmentMethod · 0.80
open_segment_writerMethod · 0.80
segment_file_pathMethod · 0.80
open_segment_readerMethod · 0.80
remove_segmentMethod · 0.80
compress_segment_withMethod · 0.80

Calls 1

segmentMethod · 0.80

Tested by

no test coverage detected