Skip to main content

resolve_first_published

Function resolve_first_published 

Source
pub fn resolve_first_published(
    candidates: &[ProductSpec],
    objects: &[PublishedObject],
) -> Result<Option<usize>, DataCatalogError>
Expand description

Index of the first candidate whose exact archive object is present among listed objects.

This is the pure availability step of a candidate walk such as predicted_ionex_line_candidates: candidates stay in preference order, an object counts only when it is exactly the candidate’s official archive filename (with the line’s compression suffix) on the candidate’s line, and the returned index preserves the candidate’s own identity - resolved provenance therefore names the line actually served.