Skip to main content

source_bytes

Function source_bytes 

Source
pub fn source_bytes(
    partitions: &[Partition],
    sources: &[ViewMetadata],
    range: TimeRange,
) -> i64
Expand description

Bytes of source data an extract over range reads: the file_size of the sources’ partitions, each prorated by the share of its insert range that lies in range. A zero-width partition counts whole when its insert time is in [begin, end). Prorating assumes data is spread evenly in insert time, which is good enough for a cap: extracts filter their sources by insert time. Partitions of other views, or of a source under another file schema, count for nothing.