Class StringsSketchAggregator

  • All Implemented Interfaces:
    BiFunction<org.apache.datasketches.frequencies.ItemsSketch<String>,​org.apache.datasketches.frequencies.ItemsSketch<String>,​org.apache.datasketches.frequencies.ItemsSketch<String>>, BinaryOperator<org.apache.datasketches.frequencies.ItemsSketch<String>>

    public class StringsSketchAggregator
    extends uk.gov.gchq.koryphe.binaryoperator.KorypheBinaryOperator<org.apache.datasketches.frequencies.ItemsSketch<String>>
    A StringsSketchAggregator is a BinaryOperator that takes in ItemsSketchs of Strings and merges them together using ItemsSketch.merge(ItemsSketch).

    NB: We cannot provide a generic aggregator for any type T as we need to clone the first sketch that is supplied to the _aggregate method and that requires serialising and deserialising which requires a specific serialiser.

    • Constructor Detail

      • StringsSketchAggregator

        public StringsSketchAggregator()