| 程序包 | 说明 |
|---|---|
| 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());
}
|
| 限定符和类型 | 方法和说明 |
|---|---|
Partition |
Table.getPartition(PartitionSpec spec)
获取指定分区信息
|
| 限定符和类型 | 方法和说明 |
|---|---|
Iterator<Partition> |
Table.getPartitionIterator()
获取分区迭代器
|
Iterator<Partition> |
Table.getPartitionIterator(PartitionSpec spec)
获取分区迭代器
|
List<Partition> |
Table.getPartitions()
获取所有分区信息
|
Copyright © 2015 Alibaba Cloud Computing. All rights reserved.