org.apache.pig.impl.builtin
Class FindQuantiles
java.lang.Object
org.apache.pig.EvalFunc<Map<String,Object>>
org.apache.pig.impl.builtin.FindQuantiles
public class FindQuantiles
- extends EvalFunc<Map<String,Object>>
Method Summary |
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 |
Methods inherited from class org.apache.pig.EvalFunc |
finish, getArgToFuncMapping, getCacheFiles, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, outputSchema, progress, setPigLogger, setReporter, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUANTILES_LIST
public static final String QUANTILES_LIST
- See Also:
- Constant Field Values
WEIGHTED_PARTS
public static final String WEIGHTED_PARTS
- See Also:
- Constant Field Values
FindQuantiles
public FindQuantiles()
FindQuantiles
public FindQuantiles(String[] args)
exec
public Map<String,Object> exec(Tuple in)
throws IOException
- first field in the input tuple is the number of quantiles to generate
second field is the *sorted* bag of samples
- Specified by:
exec
in class EvalFunc<Map<String,Object>>
- Parameters:
in
- the Tuple to be processed.
- Returns:
- result, of type T.
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation