| 程序包 | 说明 |
|---|---|
| com.aliyun.odps |
提供操作ODPS基本资源的类
ODPS基本资源包括: Table, Resource, Function等
Examples:
Account account = new AliyunAccount("accessId", "accessKey");
Odps odps = new Odps(account);
odps.setDefaultProject("my_project");
for (Table t : odps.tables()) {
System.out.print(t.getName() + "\t" + t.getOwner());
}
|
| 限定符和类型 | 方法和说明 |
|---|---|
Resource.Type |
Resource.getType()
获取资源类型
|
static Resource.Type |
Resource.Type.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Resource.Type[] |
Resource.Type.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
FileResource |
Resources.createTempResource(String projectName,
String fileName,
Resource.Type type) |
Copyright © 2015 Alibaba Cloud Computing. All rights reserved.