Package io.rtr.alchemy.db
Interface ExperimentsStore
public interface ExperimentsStore
An interface for defining basic CRUD operations around experiments, treatments and allocations.
These operations do not need to be highly optimized or fast
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes an experiment and its associated datafind(Filter filter, Experiment.BuilderFactory factory) Finds experiments with given criteriaload(String experimentName, Experiment.Builder builder) Retrieves an experimentvoidsave(Experiment experiment) Save an experiment, creating or updating it
-
Method Details
-
save
Save an experiment, creating or updating it- Parameters:
experiment- The experiment to create or update
-
load
Retrieves an experiment- Parameters:
experimentName- The name of the experimentbuilder- The builder to use to construct the experiment- Returns:
- The experiment with the given name
-
delete
Deletes an experiment and its associated data- Parameters:
experimentName- The name of the experiment
-
find
Finds experiments with given criteria- Parameters:
filter- Criteria for pagination and filtering- Returns:
- Filtered list of experiments
-