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 Details

  • Method Details

    • 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