@Internal public interface HiveFunction<UDFType>
Modifier and Type | Interface and Description |
---|---|
static class |
HiveFunction.HiveFunctionInputStrategy
InputTypeStrategy for Hive UDF, UDTF, UDAF.
|
static class |
HiveFunction.HiveFunctionOutputStrategy
OutputTypeStrategy for Hive UDF, UDTF, UDAF.
|
Modifier and Type | Method and Description |
---|---|
default TypeInference |
createTypeInference()
Creates
TypeInference for the function. |
HiveFunctionWrapper<UDFType> |
getFunctionWrapper()
Gets the wrapper for the Hive function.
|
DataType |
inferReturnType()
Infers the return type of the function.
|
void |
setArguments(CallContext callContext)
Sets input arguments for the function.
|
void setArguments(CallContext callContext)
DataType inferReturnType() throws org.apache.hadoop.hive.ql.exec.UDFArgumentException
setArguments(CallContext)
is called.org.apache.hadoop.hive.ql.exec.UDFArgumentException
- can be thrown if the input arguments are invalid.HiveFunctionWrapper<UDFType> getFunctionWrapper()
default TypeInference createTypeInference()
TypeInference
for the function.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.