public class GetEstimateAndErrorBounds
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
The result is a tuple with three double values: estimate, lower bound and upper bound. The bounds are best estimates for the confidence interval given kappa, which represents the number of standard deviations from the mean (1, 2 or 3).
| Constructor and Description |
|---|
GetEstimateAndErrorBounds()
Constructor with default kappa and seed
|
GetEstimateAndErrorBounds(String kappa)
Constructor with given kappa and default seed
|
GetEstimateAndErrorBounds(String kappa,
String seed)
Constructor with given kappa and seed
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple sketchTuple) |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
The output is a Sketch Result Tuple Schema.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic GetEstimateAndErrorBounds()
public GetEstimateAndErrorBounds(String kappa)
kappa - in a form of a Stringpublic org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple sketchTuple)
throws IOException
exec in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>IOExceptionpublic org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>Copyright © 2015–2020 The Apache Software Foundation. All rights reserved.