Search in sources :

Example 1 with CombineFn

use of org.apache.beam.sdk.transforms.Combine.CombineFn in project beam by apache.

the class CombineTranslationTest method params.

@Parameters(name = "{index}: {0}")
public static Iterable<Combine.CombineFn<Integer, ?, ?>> params() {
    BinaryCombineIntegerFn sum = Sum.ofIntegers();
    CombineFn<Integer, ?, Long> count = Count.combineFn();
    TestCombineFn test = new TestCombineFn();
    return ImmutableList.<CombineFn<Integer, ?, ?>>builder().add(sum).add(count).add(test).build();
}
Also used : BinaryCombineIntegerFn(org.apache.beam.sdk.transforms.Combine.BinaryCombineIntegerFn) CombineFn(org.apache.beam.sdk.transforms.Combine.CombineFn) Parameters(org.junit.runners.Parameterized.Parameters)

Aggregations

BinaryCombineIntegerFn (org.apache.beam.sdk.transforms.Combine.BinaryCombineIntegerFn)1 CombineFn (org.apache.beam.sdk.transforms.Combine.CombineFn)1 Parameters (org.junit.runners.Parameterized.Parameters)1