# Package org.apache.datasketches.hive.quantiles

Hive UDFs for Quantiles sketches. This includes UDFs for generic ItemsSketch and specialized DoublesSketch.

The generic implementation is in the form of abstract classes DataToItemsSketchUDAF and UnionItemsSketchUDAF to be specialized for particular types of items. An implementation for strings is provided: DataToStringsSketchUDAF, UnionStringsSketchUDAF, plus UDFs to obtain the results from sketches: GetQuantileFromStringsSketchUDF, GetQuantilesFromStringsSketchUDF and GetPmfFromStringsSketchUDF.

Support for DoublesSketch: DataToDoublesSketchUDAF, UnionDoublesSketchUDAF, GetQuantileFromDoublesSketchUDF, GetQuantilesFromDoublesSketchUDF, GetPmfFromDoublesSketchUDF

Author:
  Alexander Saydakov

Class Summary
DataToDoublesSketchUDAF
DataToItemsSketchUDAF<T>: This is a generic implementation to be specialized in subclasses
DataToItemsSketchUDAF.DataToSketchEvaluator<T>
DataToStringsSketchUDAF
DoublesSketchToStringUDF
GetCdfFromDoublesSketchUDF
GetCdfFromStringsSketchUDF
GetKFromDoublesSketchUDF
GetKFromStringsSketchUDF
GetNFromDoublesSketchUDF
GetNFromStringsSketchUDF
GetPmfFromDoublesSketchUDF
GetPmfFromStringsSketchUDF
GetQuantileFromDoublesSketchUDF
GetQuantileFromStringsSketchUDF
GetQuantilesFromDoublesSketchUDF
GetQuantilesFromStringsSketchUDF
StringsSketchToStringUDF
UnionDoublesSketchUDAF
UnionItemsSketchUDAF<T>: This is a generic implementation to be specialized in subclasses
UnionItemsSketchUDAF.UnionEvaluator<T>
UnionStringsSketchUDAF