Package io.split.engine.splitter
Class Splitter
- java.lang.Object
-
- io.split.engine.splitter.Splitter
-
public class Splitter extends Object
These set of functions figure out which treatment a key should see.- Author:
- adil
-
-
Constructor Summary
Constructors Constructor Description Splitter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetBucket(String key, int seed, int algo)Returns a bucket between 1 and 100, inclusive.static StringgetTreatment(String key, int seed, List<Partition> partitions, int algo)
-
-
-
Method Detail
-
getTreatment
public static String getTreatment(String key, int seed, List<Partition> partitions, int algo)
-
getBucket
public static int getBucket(String key, int seed, int algo)
Returns a bucket between 1 and 100, inclusive.- Parameters:
key-seed-- Returns:
- bucket >= 1 && bucket <= 100
-
-