Class ReservoirItemsUnionAggregator<T>

  • Type Parameters:
    T - The type of object in the reservoir.
    All Implemented Interfaces:
    BiFunction<org.apache.datasketches.sampling.ReservoirItemsUnion<T>,​org.apache.datasketches.sampling.ReservoirItemsUnion<T>,​org.apache.datasketches.sampling.ReservoirItemsUnion<T>>, BinaryOperator<org.apache.datasketches.sampling.ReservoirItemsUnion<T>>

    public class ReservoirItemsUnionAggregator<T>
    extends uk.gov.gchq.koryphe.binaryoperator.KorypheBinaryOperator<org.apache.datasketches.sampling.ReservoirItemsUnion<T>>
    A ReservoirItemsUnionAggregator is a BinaryOperator that aggregates ReservoirItemsUnions. It does this by extracting a ReservoirItemsSketch from each ReservoirItemsUnion and merges that using ReservoirItemsUnion.update(org.apache.datasketches.sampling.ReservoirItemsSketch).
    • Constructor Detail

      • ReservoirItemsUnionAggregator

        public ReservoirItemsUnionAggregator()
    • Method Detail

      • _apply

        public org.apache.datasketches.sampling.ReservoirItemsUnion<T> _apply​(org.apache.datasketches.sampling.ReservoirItemsUnion<T> a,
                                                                              org.apache.datasketches.sampling.ReservoirItemsUnion<T> b)