Skip to main content

coverage

Function coverage 

Source
pub fn coverage(
    starts: &[i64],
    ends: &[i64],
    values: Option<&dyn Array>,
    length: Option<i64>,
) -> Result<ArrowRle>
Expand description

Coverage of half-open intervals [start, end).

With values, each position holds the sum of the values of the intervals covering it, in the values’ own numeric type (which must have no nulls). Without, it holds the number of covering intervals as Int64. Uncovered positions are 0. The result covers 0..max(end), or 0..length.