@Internal public class HiveGenericUDF extends HiveScalarFunction<org.apache.hadoop.hive.ql.udf.generic.GenericUDF>
GenericUDF
.HiveFunction.HiveFunctionInputStrategy, HiveFunction.HiveFunctionOutputStrategy
arguments, function, hiveFunctionWrapper, returnInspector
Constructor and Description |
---|
HiveGenericUDF(HiveFunctionWrapper<org.apache.hadoop.hive.ql.udf.generic.GenericUDF> hiveFunctionWrapper,
HiveShim hiveShim) |
Modifier and Type | Method and Description |
---|---|
Object |
evalInternal(Object[] args)
Evaluation logical, args will be wrapped when is a single array.
|
DataType |
inferReturnType()
Infers the return type of the function.
|
void |
openInternal()
|
eval, getFunctionWrapper, getTypeInference, isDeterministic, open, setArguments
getKind, getParameterTypes, getResultType
close, functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTypeInference
getRequirements, supportsConstantFolding
public HiveGenericUDF(HiveFunctionWrapper<org.apache.hadoop.hive.ql.udf.generic.GenericUDF> hiveFunctionWrapper, HiveShim hiveShim)
public void openInternal()
HiveScalarFunction
openInternal
in class HiveScalarFunction<org.apache.hadoop.hive.ql.udf.generic.GenericUDF>
public Object evalInternal(Object[] args)
HiveScalarFunction
evalInternal
in class HiveScalarFunction<org.apache.hadoop.hive.ql.udf.generic.GenericUDF>
public DataType inferReturnType() throws org.apache.hadoop.hive.ql.exec.UDFArgumentException
HiveFunction
HiveFunction.setArguments(CallContext)
is called.org.apache.hadoop.hive.ql.exec.UDFArgumentException
- can be thrown if the input arguments are invalid.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.