Skip to main content

set_vectors_with_reservation

Function set_vectors_with_reservation 

Source
pub(crate) fn set_vectors_with_reservation(
    op: SetOp,
    labels: &MatchingLabels,
    lhs_schema: &SeriesSchema,
    lhs: &[Series],
    rhs_schema: &SeriesSchema,
    rhs: &[Series],
    reserve: &mut dyn FnMut(usize) -> Result<()>,
) -> Result<Vec<Series>>
Expand description

set_vectors, handing the live workspace it holds to reserve as it allocates.

The figures follow binary_vectors_with_reservation: what the results keep is held as their containers grow, each field’s walk and sort is a phase that replaces the one before it, and the merge is the last phase. A total reserve refuses ends the operation with that error.