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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intalgo()longchangeNumber()Map<String,String>configurations()static ParsedSplitcreateParsedSplitForTests(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int algo)static ParsedSplitcreateParsedSplitForTests(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int algo, Map<String,String> configurations)StringdefaultTreatment()booleanequals(Object obj)Stringfeature()inthashCode()booleankilled()List<ParsedCondition>parsedConditions()intseed()StringtoString()inttrafficAllocation()inttrafficAllocationSeed()StringtrafficTypeName()
-
-
-
Method Detail
-
createParsedSplitForTests
public static ParsedSplit createParsedSplitForTests(String feature, int seed, boolean killed, String defaultTreatment, List<ParsedCondition> matcherAndSplits, String trafficTypeName, long changeNumber, int algo)
-
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)
-
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()
-
-