Package io.split.engine.experiments
Class ParsedSplit
- java.lang.Object
-
- io.split.engine.experiments.ParsedSplit
-
public class ParsedSplit extends Object
a value class representing an io.codigo.dtos.Experiment. Why are we not using that class? Because it does not have the logic of matching. ParsedExperiment has the matchers that also encapsulate the logic of matching. We can easily cache this object.- Author:
- adil
-
-
Constructor Summary
Constructors Constructor Description ParsedSplit(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int trafficAllocation, int trafficAllocationSeed, int algo, Map<String,String> configurations, HashSet<String> flagSets, boolean impressionsDisabled, PrerequisitesMatcher prerequisitesMatcher)
-
Method Summary
-
-
-
Constructor Detail
-
ParsedSplit
public ParsedSplit(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int trafficAllocation, int trafficAllocationSeed, int algo, Map<String,String> configurations, HashSet<String> flagSets, boolean impressionsDisabled, PrerequisitesMatcher prerequisitesMatcher)
-
-
Method Detail
-
createParsedSplitForTests
public static ParsedSplit createParsedSplitForTests(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int algo, HashSet<String> flagSets, boolean impressionsDisabled, PrerequisitesMatcher prerequisitesMatcher)
-
createParsedSplitForTests
public static ParsedSplit createParsedSplitForTests(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int algo, Map<String,String> configurations, HashSet<String> flagSets, boolean impressionsDisabled, PrerequisitesMatcher prerequisitesMatcher)
-
feature
public String feature()
-
trafficAllocation
public int trafficAllocation()
-
trafficAllocationSeed
public int trafficAllocationSeed()
-
seed
public int seed()
-
killed
public boolean killed()
-
defaultTreatment
public String defaultTreatment()
-
parsedConditions
public List<ParsedCondition> parsedConditions()
-
trafficTypeName
public String trafficTypeName()
-
changeNumber
public long changeNumber()
-
algo
public int algo()
-
impressionsDisabled
public boolean impressionsDisabled()
-
prerequisitesMatcher
public PrerequisitesMatcher prerequisitesMatcher()
-
-