public class Resource extends LazyLoad
Modifier and Type | Class and Description |
---|---|
static class |
Resource.Type
表示ODPS中资源的类型
|
Constructor and Description |
---|
Resource()
创建Resource类的对象
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
获取资源注释信息
|
Date |
getCreatedTime()
获取资源创建时间
|
Date |
getLastModifiedTime()
获取资源最后修改时间
|
String |
getLastUpdator()
获得资源最后更新者
|
String |
getName()
获得资源名称
|
String |
getOwner()
获取资源所属用户
|
String |
getProject()
获取资源所在
Project 名称 |
Long |
getSize()
获得资源大小
注意: 表 和 volumn 返回 null
|
Resource.Type |
getType()
获取资源类型
|
void |
reload()
重新加载属性值
|
void |
setComment(String comment)
设置资源注释信息
|
void |
setName(String name)
设置资源名称
|
void |
updateOwner(String newOwner)
更新 资源的 owner
需要是 project owner
|
public String getName()
public void setName(String name)
name
- 资源名称public String getComment()
public void setComment(String comment)
comment
- 注释信息public String getOwner()
public Resource.Type getType()
public Date getCreatedTime()
public Date getLastModifiedTime()
public String getLastUpdator()
public Long getSize()
public void reload() throws OdpsException
LazyLoad
reload
in class LazyLoad
OdpsException
public void updateOwner(String newOwner) throws OdpsException
newOwner
- OdpsException
Copyright © 2021 Alibaba Cloud Computing. All rights reserved.