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, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, outputSchema, progress, 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-2012 The Apache Software Foundation