org.apache.pig.impl.builtin
Class FindQuantiles

java.lang.Object
  extended by org.apache.pig.EvalFunc<Map<String,Object>>
      extended by org.apache.pig.impl.builtin.FindQuantiles

public class FindQuantiles
extends EvalFunc<Map<String,Object>>


Field Summary
static String QUANTILES_LIST
           
static String WEIGHTED_PARTS
           
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
FindQuantiles()
           
FindQuantiles(String[] args)
           
 
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
 

Field Detail

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
Constructor Detail

FindQuantiles

public FindQuantiles()

FindQuantiles

public FindQuantiles(String[] args)
Method Detail

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 © ${year} The Apache Software Foundation