public List < SnapshotDto > selectFinishedByComponentUuidsAndFromDates ( DbSession dbSession , List < String > componentUuids , List < Long > fromDates ) { checkArgument ( componentUuids . size ( ) == fromDates . size ( ) , "The number of components (%s) and from dates (%s) must be the same." , String . valueOf ( componentUuids . size ( ) ) , String . valueOf ( fromDates . size ( ) ) ) ; List < ComponentUuidFromDatePair > componentUuidFromDatePairs = IntStream . range ( 0 , componentUuids . size ( ) ) . mapToObj ( i -> new ComponentUuidFromDatePair ( componentUuids . get ( i ) , fromDates . get ( i ) ) ) . collect ( MoreCollectors . toList ( componentUuids . size ( ) ) ) ; return executeLargeInputs ( componentUuidFromDatePairs , partition -> mapper ( dbSession ) . selectFinishedByComponentUuidsAndFromDates ( partition ) , i -> i / 2 ) ; }
Returned finished analysis from a list of projects and dates . Finished analysis means that the status in the CE_ACTIVITY table is SUCCESS = > the goal is to be sure that the CE task is completely finished .