public class FindQuantiles extends EvalFunc<java.util.Map<java.lang.String,java.lang.Object>>
EvalFunc.SchemaType
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
numQuantiles |
static java.lang.String |
QUANTILES_LIST |
protected DataBag |
samples |
static java.lang.String |
WEIGHTED_PARTS |
log, pigLogger, reporter, returnType
Constructor and Description |
---|
FindQuantiles() |
FindQuantiles(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.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 java.lang.String QUANTILES_LIST
public static final java.lang.String WEIGHTED_PARTS
protected java.lang.Integer numQuantiles
protected DataBag samples
public FindQuantiles()
public FindQuantiles(java.lang.String[] args)
public java.util.Map<java.lang.String,java.lang.Object> exec(Tuple in) throws java.io.IOException
Copyright © 2007-2017 The Apache Software Foundation