@Internal public abstract class HiveScalarFunction<UDFType> extends org.apache.flink.table.functions.ScalarFunction implements HiveFunction
UDF and GenericUDF functions.| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.flink.table.types.DataType[] |
argTypes |
protected Object[] |
constantArguments |
protected UDFType |
function |
protected HiveFunctionWrapper<UDFType> |
hiveFunctionWrapper |
protected org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
returnInspector |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
eval(Object... args) |
protected abstract Object |
evalInternal(Object[] args)
Evaluation logical, args will be wrapped when is a single array.
|
org.apache.flink.api.common.typeinfo.TypeInformation |
getResultType(Class[] signature) |
boolean |
isDeterministic() |
void |
open(org.apache.flink.table.functions.FunctionContext context) |
protected abstract void |
openInternal()
See
UserDefinedFunction.open(FunctionContext). |
void |
setArgumentTypesAndConstants(Object[] constantArguments,
org.apache.flink.table.types.DataType[] argTypes)
Set arguments and argTypes for Function instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHiveResultTypeprotected final HiveFunctionWrapper<UDFType> hiveFunctionWrapper
protected Object[] constantArguments
protected org.apache.flink.table.types.DataType[] argTypes
protected transient UDFType function
protected transient org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector returnInspector
public void setArgumentTypesAndConstants(Object[] constantArguments, org.apache.flink.table.types.DataType[] argTypes)
HiveFunctionsetArgumentTypesAndConstants 在接口中 HiveFunctionconstantArguments - arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)argTypes - types of argumentspublic boolean isDeterministic()
isDeterministic 在接口中 org.apache.flink.table.functions.FunctionDefinitionpublic org.apache.flink.api.common.typeinfo.TypeInformation getResultType(Class[] signature)
getResultType 在类中 org.apache.flink.table.functions.ScalarFunctionpublic void open(org.apache.flink.table.functions.FunctionContext context)
open 在类中 org.apache.flink.table.functions.UserDefinedFunctionprotected abstract void openInternal()
UserDefinedFunction.open(FunctionContext).Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.