public abstract class GenericUDFLeadLag extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Constructor and Description |
---|
GenericUDFLeadLag() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
_getFnName() |
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
int |
getAmt() |
ObjectInspector |
getDefaultArgOI() |
ObjectInspectorConverters.Converter |
getDefaultValueConverter() |
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
ExprNodeEvaluator |
getExprEvaluator() |
ObjectInspector |
getFirstArgOI() |
protected abstract int |
getIndex(int amt) |
PTFPartition.PTFPartitionIterator<Object> |
getpItr() |
protected abstract Object |
getRow(int amt) |
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
void |
setAmt(int amt) |
void |
setDefaultArgOI(ObjectInspector defaultArgOI) |
void |
setDefaultValueConverter(ObjectInspectorConverters.Converter defaultValueConverter) |
void |
setExprEvaluator(ExprNodeEvaluator exprEvaluator) |
void |
setFirstArgOI(ObjectInspector firstArgOI) |
void |
setpItr(PTFPartition.PTFPartitionIterator<Object> pItr) |
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, flip, getArgOrder, getConstantIntValue, getConstantLongValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
public Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
GenericUDF
evaluate
in class GenericUDF
arguments
- The arguments as DeferedObject, use DeferedObject.get() to get the
actual argument Object. The Objects can be inspected by the
ObjectInspectors passed in the initialize call.HiveException
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDF
initialize
in class GenericUDF
arguments
- The ObjectInspector for the argumentsUDFArgumentException
- Thrown when arguments have wrong types, wrong length, etc.public ExprNodeEvaluator getExprEvaluator()
public void setExprEvaluator(ExprNodeEvaluator exprEvaluator)
public PTFPartition.PTFPartitionIterator<Object> getpItr()
public void setpItr(PTFPartition.PTFPartitionIterator<Object> pItr)
public ObjectInspector getFirstArgOI()
public void setFirstArgOI(ObjectInspector firstArgOI)
public ObjectInspector getDefaultArgOI()
public void setDefaultArgOI(ObjectInspector defaultArgOI)
public ObjectInspectorConverters.Converter getDefaultValueConverter()
public void setDefaultValueConverter(ObjectInspectorConverters.Converter defaultValueConverter)
public int getAmt()
public void setAmt(int amt)
public String getDisplayString(String[] children)
GenericUDF
getDisplayString
in class GenericUDF
protected abstract String _getFnName()
protected abstract Object getRow(int amt) throws HiveException
HiveException
protected abstract int getIndex(int amt)
Copyright © 2017 The Apache Software Foundation. All rights reserved.