Class StringsSketchAggregator
- java.lang.Object
-
- uk.gov.gchq.koryphe.binaryoperator.KorypheBinaryOperator<org.apache.datasketches.frequencies.ItemsSketch<String>>
-
- uk.gov.gchq.gaffer.sketches.datasketches.frequencies.binaryoperator.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>>
AStringsSketchAggregator
is aBinaryOperator
that takes inItemsSketch
s ofString
s and merges them together usingItemsSketch.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 Summary
Constructors Constructor Description StringsSketchAggregator()
-