Class Splitter


  • public class Splitter
    extends Object
    These set of functions figure out which treatment a key should see.
    Author:
    adil
    • Constructor Detail

      • Splitter

        public Splitter()
    • Method Detail

      • 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