# Package org.apache.datasketches.pig.frequencies

Pig UDFs for Frequent Items sketch.

See: Description

Class Summary
AlgebraicInitial: This is a common pass-through implementation for initial step of an Algebraic operation
DataToFrequentItemsSketch<T>: This is a generic implementation to be specialized in concrete UDFs
DataToFrequentItemsSketchAlgebraicIntermediateFinal<T>: Class used to calculate the intermediate pass (combiner) or the final pass (reducer) of an Algebraic sketch operation.
DataToFrequentStringsSketch: This UDF creates a FrequentItemsSketch<String> from raw data.
DataToFrequentStringsSketch.Initial
DataToFrequentStringsSketch.IntermediateFinal
FrequentStringsSketchToEstimates: This UDF converts a FrequentItemsSketch<String> to estimates: {(item, estimate, upper bound, lower bound), ...}
UnionFrequentItemsSketch<T>: This is a generic implementation to be specialized in concrete UDFs
UnionFrequentItemsSketchAlgebraicIntermediateFinal<T>: This is to calculate the intermediate pass (combiner) or the final pass (reducer) of an Algebraic sketch operation.
UnionFrequentStringsSketch: This is to union FrequentItemsSketch<String>.
UnionFrequentStringsSketch.Initial
UnionFrequentStringsSketch.IntermediateFinal

## Package org.apache.datasketches.pig.frequencies Description

Pig UDFs for Frequent Items sketch. This includes generic implementation in the form of abstract classes DataToFrequentItemsSketch and UnionFrequentItemsSketch to be specialized for particular types of items. An implementation for strings is provided: DataToFrequentStringsSketch and UnionFrequentStringsSketch. FrequentStringsSketchToEstimates is to obtain results from sketches.

Author:
  Alexander Saydakov