Example #1
0
 /**
  * Adds a partition to the spec. If time is part of the partition criterion, use {@link
  * addTimedPartition} instead
  *
  * @param name the name of the partition
  * @param part the partition itself
  */
 public void addPartition(String name, Partition<T> part) {
   partitions.add(Named.create(name, part.lift(Timed.<T>valueFunction())));
 }
Example #2
0
 /**
  * Adds a time partition to the spec (not to be confused with {@link addTimedPartition})
  *
  * @param name the name of the partition
  * @param part the partition itself
  */
 public void addTimePartition(String name, Partition<Double> part) {
   partitions.add(Named.create(name, part.lift(Timed.<T>timeFunction())));
 }