Package org.apache.datasketches.hive.cpc
Class SketchToStringUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.cpc.SketchToStringUDF
-
public class SketchToStringUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description SketchToStringUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringevaluate(org.apache.hadoop.io.BytesWritable serializedSketch)Get a summary of a given CpcSketch using the default seedStringevaluate(org.apache.hadoop.io.BytesWritable serializedSketch, long seed)Get a summary of a given CpcSketch with explicit seed
-
-
-
Method Detail
-
evaluate
public String evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, long seed)
Get a summary of a given CpcSketch with explicit seed- Parameters:
serializedSketch- CpcSketch in a serialized binary formseed- update seed- Returns:
- text summary
-
evaluate
public String evaluate(org.apache.hadoop.io.BytesWritable serializedSketch)
Get a summary of a given CpcSketch using the default seed- Parameters:
serializedSketch- CpcSketch in a serialized binary form- Returns:
- text summary
-
-