public class Estimate extends org.apache.pig.EvalFunc<Double>
| Constructor and Description |
|---|
Estimate()
Constructs with the DEFAULT_UPDATE_SEED used when deserializing the sketch.
|
Estimate(long seed)
Constructs with the given seed.
|
Estimate(String seedStr)
Constructs with the given seed.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
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, warnpublic Estimate()
public Estimate(String seedStr)
seedStr - the string seed used when deserializing the sketch.public Estimate(long seed)
seed - used when deserializing the sketch.public Double exec(org.apache.pig.data.Tuple sketchTuple) throws IOException
exec in class org.apache.pig.EvalFunc<Double>IOExceptionCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.