use of com.hazelcast.jet.stream.impl.processor.CombineP in project hazelcast-jet by hazelcast.
the class Reducers method buildCombiner.
private static <T> Vertex buildCombiner(DAG dag, Vertex accumulate, BinaryOperator<T> combiner) {
DistributedSupplier<Processor> supplier = () -> new CombineP<>(combiner);
Vertex combine = dag.newVertex("combine", supplier).localParallelism(1);
dag.edge(between(accumulate, combine).distributed().allToOne());
return combine;
}