构造器和说明 |
---|
OTSClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName)
使用指定的OTS Endpoint和默认配置构造一个新的
OTSClient 实例。 |
OTSClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config)
使用指定的OTS Endpoint和配置构造一个新的
OTSClient 实例。 |
OTSClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config,
OTSServiceConfiguration otsConfig)
使用指定的OTS Endpoint和配置构造一个新的
OTSClient 实例。 |
OTSClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config,
OTSServiceConfiguration otsConfig,
String stsToken)
使用指定的OTS Endpoint和配置构造一个新的
OTSClient 实例。 |
OTSClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
String stsToken)
使用指定的OTS Endpoint和默认配置构造一个新的
OTSClient 实例。 |
public OTSClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName)
OTSClient
实例。
注意:
1. 大多数情况下,全局创建一个OTSClient对象即可(线程安全),不需要每次创建一个。
当并发极高时(数万QPS),可以尝试使用多个OTSClient对象进行性能测试与调优,但数目也不宜过多。
2. 每个OTSClient会占用一定的线程、连接资源,可以通过ClientConfiguration配置线程数、连接数等。
3. 在使用完毕后,请调用shutdown方法释放OTSClient占有的线程和连接资源。endpoint
- OTS服务的endpoint。accessKeyId
- 访问OTS服务的Access ID。accessKeySecret
- 访问OTS服务的Access Key。public OTSClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, String stsToken)
OTSClient
实例。
注意:
1. 大多数情况下,全局创建一个OTSClient对象即可(线程安全),不需要每次创建一个。
当并发极高时(数万QPS),可以尝试使用多个OTSClient对象进行性能测试与调优,但数目也不宜过多。
2. 每个OTSClient会占用一定的线程、连接资源,可以通过ClientConfiguration配置线程数、连接数等。
3. 在使用完毕后,请调用shutdown方法释放OTSClient占有的线程和连接资源。endpoint
- OTS服务的endpoint。accessKeyId
- 访问OTS服务的Access ID。accessKeySecret
- 访问OTS服务的Access Key。stsToken
- OTS服务短期访问凭证。详情参考阿里云STS服务文档。public OTSClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config)
OTSClient
实例。
注意:
1. 大多数情况下,全局创建一个OTSClient对象即可(线程安全),不需要每次创建一个。
当并发极高时(数万QPS),可以尝试使用多个OTSClient对象进行性能测试与调优,但数目也不宜过多。
2. 每个OTSClient会占用一定的线程、连接资源,可以通过ClientConfiguration配置线程数、连接数等。
3. 在使用完毕后,请调用shutdown方法释放OTSClient占有的线程和连接资源。endpoint
- OTS服务的endpoint。accessKeyId
- 访问OTS服务的Access ID。accessKeySecret
- 访问OTS服务的Access Key。config
- 客户端配置信息(ClientConfiguration
)。 如果传入null则使用默认配置。public OTSClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config, OTSServiceConfiguration otsConfig)
OTSClient
实例。
注意:
1. 大多数情况下,全局创建一个OTSClient对象即可(线程安全),不需要每次创建一个。
当并发极高时(数万QPS),可以尝试使用多个OTSClient对象进行性能测试与调优,但数目也不宜过多。
2. 每个OTSClient会占用一定的线程、连接资源,可以通过ClientConfiguration配置线程数、连接数等。
3. 在使用完毕后,请调用shutdown方法释放OTSClient占有的线程和连接资源。endpoint
- OTS服务的endpoint。accessKeyId
- 访问OTS服务的Access ID。accessKeySecret
- 访问OTS服务的Access Key。config
- 客户端配置信息(ClientConfiguration
)。 如果传入null则使用默认配置。otsConfig
- OTS服务相关配置信息(OTSServiceConfiguration
)。 如果传入null则使用默认配置。public OTSClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config, OTSServiceConfiguration otsConfig, String stsToken)
OTSClient
实例。
注意:
1. 大多数情况下,全局创建一个OTSClient对象即可(线程安全),不需要每次创建一个。
当并发极高时(数万QPS),可以尝试使用多个OTSClient对象进行性能测试与调优,但数目也不宜过多。
2. 每个OTSClient会占用一定的线程、连接资源,可以通过ClientConfiguration配置线程数、连接数等。
3. 在使用完毕后,请调用shutdown方法释放OTSClient占有的线程和连接资源。endpoint
- OTS服务的endpoint。accessKeyId
- 访问OTS服务的Access ID。accessKeySecret
- 访问OTS服务的Access Key。config
- 客户端配置信息(ClientConfiguration
)。 如果传入null则使用默认配置。otsConfig
- OTS服务相关配置信息(OTSServiceConfiguration
)。 如果传入null则使用默认配置。stsToken
- OTS服务短期访问凭证。详情参考阿里云STS服务文档。public String getEndpoint()
public String getInstanceName()
public CreateTableResult createTable(CreateTableRequest createTableRequest) throws OTSException, ClientException
OTS
createTable
在接口中 OTS
createTableRequest
- 执行CreateTable操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public ListTableResult listTable() throws OTSException, ClientException
OTS
listTable
在接口中 OTS
OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public DescribeTableResult describeTable(DescribeTableRequest describeTableRequest) throws OTSException, ClientException
OTS
describeTable
在接口中 OTS
describeTableRequest
- 执行DescribeTable操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public DeleteTableResult deleteTable(DeleteTableRequest deleteTableRequest) throws OTSException, ClientException
OTS
deleteTable
在接口中 OTS
deleteTableRequest
- 执行DeleteTable操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public UpdateTableResult updateTable(UpdateTableRequest updateTableRequest) throws OTSException, ClientException
OTS
updateTable
在接口中 OTS
updateTableRequest
- 执行UpdateTable操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public GetRowResult getRow(GetRowRequest getRowRequest) throws OTSException, ClientException
OTS
getRow
在接口中 OTS
getRowRequest
- 执行GetRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public PutRowResult putRow(PutRowRequest putRowRequest) throws OTSException, ClientException
OTS
putRow
在接口中 OTS
putRowRequest
- 执行PutRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public UpdateRowResult updateRow(UpdateRowRequest updateRowRequest) throws OTSException, ClientException
OTS
updateRow
在接口中 OTS
updateRowRequest
- 执行UpdateRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public DeleteRowResult deleteRow(DeleteRowRequest deleteRowRequest) throws OTSException, ClientException
OTS
deleteRow
在接口中 OTS
deleteRowRequest
- 执行DeleteRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public BatchGetRowResult batchGetRow(BatchGetRowRequest batchGetRowRequest) throws OTSException, ClientException
OTS
batchGetRow
在接口中 OTS
batchGetRowRequest
- 执行BatchGetRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public BatchWriteRowResult batchWriteRow(BatchWriteRowRequest batchWriteRowRequest) throws OTSException, ClientException
OTS
batchWriteRow
在接口中 OTS
batchWriteRowRequest
- 执行BatchWriteRow操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public GetRangeResult getRange(GetRangeRequest getRangeRequest) throws OTSException, ClientException
OTS
getRange
在接口中 OTS
getRangeRequest
- 执行GetRange操作所需参数的封装。OTSException
- OTS访问返回错误消息ClientException
- 请求的返回结果无效, 或由于网络原因请求失败, 或访问超时。public Iterator<Row> createRangeIterator(RangeIteratorParameter rangeIteratorParameter) throws OTSException, ClientException
createRangeIterator
在接口中 OTS
OTSException
ClientException
Copyright © 2016. All Rights Reserved.