public static <T> Globally<T> globally() {
    return new AutoValue_ApproximateCountDistinct_Globally.Builder<T>()
        .setPrecision(HllCount.DEFAULT_PRECISION)
        .build();
  }
@Test
  @Category(NeedsRunner.class)
  public void testObjectTypesGlobal() {

    PCollection<Long> approxResultInteger =
        p.apply(
                "Int",
                Create.of(
                    INTS1.stream().map(x -> KV.of(x, KV.of(x, x))).collect(Collectors.toList())))
            .apply(
                "IntHLL",
                ApproximateCountDistinct.<KV<Integer, KV<Integer, Integer>>>globally()
                    .via((KV<Integer, KV<Integer, Integer>> x) -> (long) x.getValue().hashCode()));

    PAssert.thatSingleton(approxResultInteger).isEqualTo(INTS1_ESTIMATE);

    p.run();
  }