public class SketchToString extends org.apache.pig.EvalFunc<String>
Refer to DataToSketch.exec(Tuple)
for the definition of a Sketch Tuple.
Constructor and Description |
---|
SketchToString()
Pretty prints only the sketch summary.
|
SketchToString(boolean outputDetail,
long seed)
Pretty prints all bucket detail plus the sketch summary based on outputDetail.
|
SketchToString(String outputDetailStr)
Pretty prints all bucket detail plus the sketch summary based on outputDetail.
|
SketchToString(String outputDetailStr,
String seedStr)
Pretty prints all bucket detail plus the sketch summary based on outputDetail.
|
Modifier and Type | Method and Description |
---|---|
String |
exec(org.apache.pig.data.Tuple sketchTuple) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public SketchToString()
public SketchToString(String outputDetailStr)
outputDetailStr
- If the first character is a "T" or "t" the output will include the bucket
detail. Otherwise only the sketch summary will be output.public SketchToString(String outputDetailStr, String seedStr)
outputDetailStr
- If the first character is a "T" or "t" the output will include the bucket
detail. Otherwise only the sketch summary will be output.seedStr
- the seed stringpublic SketchToString(boolean outputDetail, long seed)
outputDetail
- If the first character is a "T" or "t" the output will include the bucket
detail. Otherwise only the sketch summary will be output.seed
- the seed stringpublic String exec(org.apache.pig.data.Tuple sketchTuple) throws IOException
exec
in class org.apache.pig.EvalFunc<String>
IOException
Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.