@PublicEvolving public abstract class UserDefinedFunction extends Object implements Serializable
| 构造器和说明 |
|---|
UserDefinedFunction() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Tear-down method for user-defined function.
|
String |
functionIdentifier()
Returns a unique, serialized representation for this function.
|
boolean |
isDeterministic()
Returns information about the determinism of the function's results.
|
void |
open(FunctionContext context)
Setup method for user-defined function.
|
String |
toString()
Returns the name of the UDF that is used for plan explain and logging.
|
public final String functionIdentifier()
public void open(FunctionContext context) throws Exception
Exceptionpublic void close()
throws Exception
Exceptionpublic boolean isDeterministic()
true if and only if a call to this function is guaranteed to
always return the same result given the same parameters. true is
assumed by default. If the function is not pure functional like
random(), date(), now(), ... this method must return false.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.