use of com.yahoo.sketches.theta.Union in project Gaffer by gchq.
the class UnionSerialiserTest method getExampleOutput.
@Override
protected Union getExampleOutput() {
final Union union = SetOperation.builder().buildUnion();
union.update(1.0D);
union.update(2.0D);
union.update(3.0D);
return union;
}
use of com.yahoo.sketches.theta.Union in project Gaffer by gchq.
the class SketchAggregator method _apply.
@Override
protected Sketch _apply(final Sketch a, final Sketch b) {
final Union union = Sketches.setOperationBuilder().buildUnion();
union.update(a);
union.update(b);
return union.getResult();
}
Aggregations