Package dev.dokimos.server.repository
Class ExperimentRunRepositoryFragmentImpl
java.lang.Object
dev.dokimos.server.tenant.AbstractScopedRepository<ExperimentRun>
dev.dokimos.server.repository.ExperimentRunRepositoryFragmentImpl
- All Implemented Interfaces:
ExperimentRunRepositoryFragment,ScopedRepository<ExperimentRun>
public class ExperimentRunRepositoryFragmentImpl
extends AbstractScopedRepository<ExperimentRun>
implements ExperimentRunRepositoryFragment
Tenant-scoped implementation of the
ExperimentRun finders.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBaselineCandidates(Experiment experiment, UUID candidateId, UUID datasetVersionId, String branch, org.springframework.data.domain.Pageable pageable, TenantScope scope) SUCCESS baseline candidates for automatic gate resolution, within the scope, newest first.findByExperiment(Experiment experiment, TenantScope scope) Lists an experiment's runs newest first, within the scope.findByIdForUpdate(UUID id, TenantScope scope) Loads a run by id within the scope under a write lock, to serialize ingestion against completion.findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable, TenantScope scope) Returns an experiment's terminal (SUCCESS or FAILED) runs newest first, within the scope.findFirstByExperiment(Experiment experiment, TenantScope scope) Returns the most recent run of an experiment within the scope.Methods inherited from class dev.dokimos.server.tenant.AbstractScopedRepository
count, delete, findAll, findById, save, saveAll
-
Constructor Details
-
ExperimentRunRepositoryFragmentImpl
public ExperimentRunRepositoryFragmentImpl()
-
-
Method Details
-
findByExperiment
Description copied from interface:ExperimentRunRepositoryFragmentLists an experiment's runs newest first, within the scope.- Specified by:
findByExperimentin interfaceExperimentRunRepositoryFragment
-
findFirstByExperiment
Description copied from interface:ExperimentRunRepositoryFragmentReturns the most recent run of an experiment within the scope.- Specified by:
findFirstByExperimentin interfaceExperimentRunRepositoryFragment
-
findByIdForUpdate
Description copied from interface:ExperimentRunRepositoryFragmentLoads a run by id within the scope under a write lock, to serialize ingestion against completion.- Specified by:
findByIdForUpdatein interfaceExperimentRunRepositoryFragment
-
findCompletedRunsByExperiment
public List<ExperimentRun> findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable, TenantScope scope) Description copied from interface:ExperimentRunRepositoryFragmentReturns an experiment's terminal (SUCCESS or FAILED) runs newest first, within the scope.- Specified by:
findCompletedRunsByExperimentin interfaceExperimentRunRepositoryFragment
-
findBaselineCandidates
public List<ExperimentRun> findBaselineCandidates(Experiment experiment, UUID candidateId, UUID datasetVersionId, String branch, org.springframework.data.domain.Pageable pageable, TenantScope scope) Description copied from interface:ExperimentRunRepositoryFragmentSUCCESS baseline candidates for automatic gate resolution, within the scope, newest first. Excludes the candidate run, requires the same dataset version (a nulldatasetVersionIdmatches ad-hoc to ad-hoc), and filters bybranchwhen non-null.- Specified by:
findBaselineCandidatesin interfaceExperimentRunRepositoryFragment
-