@WindowFunctionDescription(description=, supportsWindow=false, pivotResult=true, rankingFunction=true, impliesOrder=true) public class GenericUDAFRank extends AbstractGenericUDAFResolver
Modifier and Type | Class and Description |
---|---|
static class |
GenericUDAFRank.GenericUDAFAbstractRankEvaluator |
static class |
GenericUDAFRank.GenericUDAFRankEvaluator |
Constructor and Description |
---|
GenericUDAFRank() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(Object[] o1,
ObjectInspector[] oi1,
Object[] o2,
ObjectInspector[] oi2) |
static Object[] |
copyToStandardObject(Object[] o,
ObjectInspector[] oi,
ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption) |
protected GenericUDAFRank.GenericUDAFAbstractRankEvaluator |
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.GenericUDAFAbstractRankEvaluator createEvaluator()
public static int compare(Object[] o1, ObjectInspector[] oi1, Object[] o2, ObjectInspector[] oi2)
public static Object[] copyToStandardObject(Object[] o, ObjectInspector[] oi, ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
Copyright © 2019 The Apache Software Foundation. All rights reserved.