Package | Description |
---|---|
com.aliyun.odps.tunnel |
ODPS Tunnel服务用于上传、下载数据到ODPS
|
com.aliyun.odps.tunnel.io |
提供通过Tunnel读写数据的Reader、Writer
|
Class and Description |
---|
InstanceTunnel.DownloadSession
DownloadSession 表示从 ODPS Instance 中下载数据的会话,一般通过
InstanceTunnel 来创建。Session ID 是 Session 的唯一标识符,可通过 InstanceTunnel.DownloadSession.getId() 获取。Instance 中Record总数可通过 InstanceTunnel.DownloadSession.getRecordCount() 得到,用户可根据 Record 总数来启动并发下载。DownloadSession 通过创建 RecordReader 来完成数据的读取,需指定读取记录的起始位置和数量RecordReader 对应HTTP请求的超时时间为 300S,超时后 service 端会主动关闭。 |
InstanceTunnel.DownloadStatus
下载会话的状态
UNKNOWN 未知 NORMAL 正常 CLOSED 关闭 EXPIRED 过期 |
TableTunnel.DownloadSession
DownloadSession 表示从 ODPS 表中下载数据的会话,一般通过
TableTunnel 来创建。Session ID 是 Session 的唯一标识符,可通过 TableTunnel.DownloadSession.getId() 获取。表中Record总数可通过 TableTunnel.DownloadSession.getRecordCount() 得到,用户可根据 Record 总数来启动并发下载。DownloadSession 通过创建 RecordReader 来完成数据的读取,需指定读取记录的起始位置和数量RecordReader 对应HTTP请求的超时时间为 300S,超时后 service 端会主动关闭。 |
TableTunnel.DownloadStatus
下载会话的状态
UNKNOWN 未知 NORMAL 正常 CLOSED 关闭 EXPIRED 过期 |
TableTunnel.UploadSession
UploadSession 表示向ODPS表中上传数据的会话,一般通过
TableTunnel 来创建。上传 Session 是 INSERT INTO 语义,即对同一张表或 partition 的多个/多次上传 Session 互不影响。 Session ID 是Session的唯一标识符,可通过 TableTunnel.UploadSession.getId() 获取。UploadSession 通过创建 RecordWriter 来完成数据的写入操作。每个 RecordWriter 对应一个 HTTP Request,单个 UploadSession 可创建多个RecordWriter。 创建 RecordWriter 时需指定 block ID,block ID是 RecordWriter 的唯一标识符,取值范围 [0, 20000),单个block上传的数据限制是 100G。 同一 UploadSession 中,使用同一 block ID 多次打开 RecordWriter 会导致覆盖行为,最后一个调用 close() 的 RecordWriter 所上传的数据会被保留。同一RecordWriter实例不能重复调用 close(). RecordWriter 对应的 HTTP Request超时为 120s,若 120s 内没有数据传输,service 端会主动关闭连接。特别提醒,HTTP协议本身有8K buffer。 |
TableTunnel.UploadStatus
UploadStatus表示当前Upload的状态
UNKNOWN 未知 NORMAL 正常 CLOSING 关闭中 CLOSED 已关闭 CANCELED 已取消 EXPIRED 已过期 CRITICAL 严重错误 |
TunnelException
该异常在DataTunnel服务访问失败时抛出。
|
VolumeTunnel.DownloadSession
此类表示一个向ODPS中下载Volume的会话
|
VolumeTunnel.DownloadStatus
下载会话的状态
UNKNOWN 未知 NORMAL 正常 CLOSED 关闭 EXPIRED 过期 |
VolumeTunnel.UploadSession
UploadSession表示一个向ODPS表中上传数据的会话
|
VolumeTunnel.UploadStatus
UploadStatus表示当前Upload的状态
UNKNOWN 未知 NORMAL 正常 CLOSING 关闭中 CLOSED 已关闭 CANCELED 已取消 EXPIRED 已过期 CRITICAL 严重错误 |
Class and Description |
---|
InstanceTunnel.DownloadSession
DownloadSession 表示从 ODPS Instance 中下载数据的会话,一般通过
InstanceTunnel 来创建。Session ID 是 Session 的唯一标识符,可通过 InstanceTunnel.DownloadSession.getId() 获取。Instance 中Record总数可通过 InstanceTunnel.DownloadSession.getRecordCount() 得到,用户可根据 Record 总数来启动并发下载。DownloadSession 通过创建 RecordReader 来完成数据的读取,需指定读取记录的起始位置和数量RecordReader 对应HTTP请求的超时时间为 300S,超时后 service 端会主动关闭。 |
TableTunnel.DownloadSession
DownloadSession 表示从 ODPS 表中下载数据的会话,一般通过
TableTunnel 来创建。Session ID 是 Session 的唯一标识符,可通过 TableTunnel.DownloadSession.getId() 获取。表中Record总数可通过 TableTunnel.DownloadSession.getRecordCount() 得到,用户可根据 Record 总数来启动并发下载。DownloadSession 通过创建 RecordReader 来完成数据的读取,需指定读取记录的起始位置和数量RecordReader 对应HTTP请求的超时时间为 300S,超时后 service 端会主动关闭。 |
TableTunnel.UploadSession
UploadSession 表示向ODPS表中上传数据的会话,一般通过
TableTunnel 来创建。上传 Session 是 INSERT INTO 语义,即对同一张表或 partition 的多个/多次上传 Session 互不影响。 Session ID 是Session的唯一标识符,可通过 TableTunnel.UploadSession.getId() 获取。UploadSession 通过创建 RecordWriter 来完成数据的写入操作。每个 RecordWriter 对应一个 HTTP Request,单个 UploadSession 可创建多个RecordWriter。 创建 RecordWriter 时需指定 block ID,block ID是 RecordWriter 的唯一标识符,取值范围 [0, 20000),单个block上传的数据限制是 100G。 同一 UploadSession 中,使用同一 block ID 多次打开 RecordWriter 会导致覆盖行为,最后一个调用 close() 的 RecordWriter 所上传的数据会被保留。同一RecordWriter实例不能重复调用 close(). RecordWriter 对应的 HTTP Request超时为 120s,若 120s 内没有数据传输,service 端会主动关闭连接。特别提醒,HTTP协议本身有8K buffer。 |
TunnelException
该异常在DataTunnel服务访问失败时抛出。
|
Copyright © 2019 Alibaba Cloud Computing. All rights reserved.