public class Function extends LazyLoad
Constructor and Description |
---|
Function() |
Modifier and Type | Method and Description |
---|---|
String |
getClassPath()
获得函数使用的类名
|
String |
getClassType()
Deprecated.
|
Date |
getCreatedTime()
获取函数创建时间
|
String |
getName()
获得函数名
|
String |
getOwner()
获得函数所属用户
|
String |
getProject()
获取函数所在
Project 名称 |
List<String> |
getResourceNames()
获得函数相关的资源名称列表。
|
List<Resource> |
getResources()
获得函数相关的资源列表。UDF所用到的资源列表,这个里面必须包括UDF代码所在的资源。如果用户UDF中需要读取其他资源文件,这个列表中还得包括UDF所读取的资源文件列表。
|
String |
getSqlDefinitionText()
Get the SQL definition text of this function.
|
boolean |
isSqlFunction()
Check if this function is a SQL function.
|
void |
reload()
重新加载属性值
|
void |
setClassPath(String classPath)
设置函数使用的类名
|
void |
setClassType(String classType)
Deprecated.
|
void |
setName(String name)
设置函数名
|
void |
setResources(List<String> resources)
设置函数依赖的相关资源
|
void |
updateOwner(String newOwner) |
public String getName()
public void setName(String name)
name
- 函数名public String getOwner()
public Date getCreatedTime()
@Deprecated public String getClassType()
public String getClassPath()
@Deprecated public void setClassType(String classType)
public void setClassPath(String classPath)
classPath
- 函数使用的类名public List<Resource> getResources()
public List<String> getResourceNames()
public void setResources(List<String> resources)
resources
- 资源列表public boolean isSqlFunction()
public String getSqlDefinitionText()
public void reload() throws OdpsException
LazyLoad
reload
in class LazyLoad
OdpsException
public void updateOwner(String newOwner) throws OdpsException
OdpsException
Copyright © 2021 Alibaba Cloud Computing. All rights reserved.