@WindowFunctionDescription(description=, supportsWindow=false, pivotResult=true, rankingFunction=true, impliesOrder=true) public class GenericUDAFRank extends AbstractGenericUDAFResolver
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDAFRank.GenericUDAFRankEvaluator |
Constructor and Description |
---|
GenericUDAFRank() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.Object[] o1,
ObjectInspector[] oi1,
java.lang.Object[] o2,
ObjectInspector[] oi2) |
static java.lang.Object[] |
copyToStandardObject(java.lang.Object[] o,
ObjectInspector[] oi,
ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption) |
protected GenericUDAFRank.GenericUDAFRankEvaluator |
createEvaluator() |
GenericUDAFEvaluator |
getEvaluator(TypeInfo[] parameters)
Get the evaluator for the parameter types.
|
getEvaluator
public GenericUDAFEvaluator getEvaluator(TypeInfo[] parameters) throws SemanticException
GenericUDAFResolver
If the class of the object does not implement Serializable, then we will create a new instance of the class at execution time.
getEvaluator
in interface GenericUDAFResolver
getEvaluator
in class AbstractGenericUDAFResolver
parameters
- The types of the parameters. We need the type information to know
which evaluator class to use.SemanticException
protected GenericUDAFRank.GenericUDAFRankEvaluator createEvaluator()
public static int compare(java.lang.Object[] o1, ObjectInspector[] oi1, java.lang.Object[] o2, ObjectInspector[] oi2)
public static java.lang.Object[] copyToStandardObject(java.lang.Object[] o, ObjectInspector[] oi, ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
Copyright © 2012 The Apache Software Foundation