@Internal public class HiveSimpleUDF extends HiveScalarFunction<org.apache.hadoop.hive.ql.exec.UDF>
UDF
.HiveFunction.HiveFunctionInputStrategy, HiveFunction.HiveFunctionOutputStrategy
arguments, function, hiveFunctionWrapper, returnInspector
Constructor and Description |
---|
HiveSimpleUDF(HiveFunctionWrapper<org.apache.hadoop.hive.ql.exec.UDF> 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 HiveSimpleUDF(HiveFunctionWrapper<org.apache.hadoop.hive.ql.exec.UDF> hiveFunctionWrapper, HiveShim hiveShim)
public void openInternal()
HiveScalarFunction
openInternal
in class HiveScalarFunction<org.apache.hadoop.hive.ql.exec.UDF>
public Object evalInternal(Object[] args)
HiveScalarFunction
evalInternal
in class HiveScalarFunction<org.apache.hadoop.hive.ql.exec.UDF>
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.