public class FindQuantiles extends EvalFunc<Map<String,Object>>
EvalFunc.SchemaType
Modifier and Type | Field and Description |
---|---|
protected Integer |
numQuantiles |
static String |
QUANTILES_LIST |
protected DataBag |
samples |
static String |
WEIGHTED_PARTS |
log, pigLogger, reporter, returnType
Constructor and Description |
---|
FindQuantiles() |
FindQuantiles(String[] args) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
exec(Tuple in)
first field in the input tuple is the number of quantiles to generate
second field is the *sorted* bag of samples
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public static final String QUANTILES_LIST
public static final String WEIGHTED_PARTS
protected Integer numQuantiles
protected DataBag samples
public FindQuantiles()
public FindQuantiles(String[] args)
public Map<String,Object> exec(Tuple in) throws IOException
Copyright © 2007-2017 The Apache Software Foundation