|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 OTSException 的软件包 | |
|---|---|
| com.aliyun.openservices.ots | |
| com.aliyun.openservices.ots 中 OTSException 的使用 |
|---|
| 抛出 OTSException 的 com.aliyun.openservices.ots 中的方法 | |
|---|---|
void |
OTSClient.abortTransaction(String transactionId)
|
void |
OTS.abortTransaction(String transactionId)
撤销一个事务(Transaction),撤销后所有在此事务中的操作都被取消,撤销后此事务ID失效。 |
void |
OTSClient.batchModifyData(String tableName,
Collection<RowChange> rowChanges,
String transactionId)
|
void |
OTS.batchModifyData(String tableName,
Collection<RowChange> rowChanges,
String transactionId)
把PutData和/或DeleteData的多次调用组合成一个调用。 |
void |
OTSClient.commitTransaction(String transactionId)
|
void |
OTS.commitTransaction(String transactionId)
确认并提交事务(Transaction),提交后此事务ID失效。 |
void |
OTSClient.createTable(TableMeta tableMeta)
|
void |
OTS.createTable(TableMeta tableMeta)
创建表(Table)及其相关视图(View)。 |
void |
OTSClient.createTableGroup(String tableGroupName,
PartitionKeyType pkType)
|
void |
OTS.createTableGroup(String tableGroupName,
PartitionKeyType pkType)
创建表组(Table Group)。 |
void |
OTSClient.deleteData(String tableName,
RowDeleteChange rowChange,
String transactionId)
|
void |
OTS.deleteData(String tableName,
RowDeleteChange rowChange,
String transactionId)
删除指定行或行中的数据。 |
void |
OTSClient.deleteTable(String tableName)
|
void |
OTS.deleteTable(String tableName)
删除表(Table)及与此表一起创建的视图(View)。 |
void |
OTSClient.deleteTableGroup(String tableGroupName)
|
void |
OTS.deleteTableGroup(String tableGroupName)
删除表组(Table Group)及属于该表组的相关表(Table)和视图(View)。 |
Row |
OTSClient.getRow(SingleRowQueryCriteria criteria,
String transactionId)
|
Row |
OTS.getRow(SingleRowQueryCriteria criteria,
String transactionId)
返回表(Table)或视图(View)中的一行数据。 |
List<Row> |
OTSClient.getRowsByOffset(OffsetRowQueryCriteria criteria,
String transactionId)
|
List<Row> |
OTS.getRowsByOffset(OffsetRowQueryCriteria criteria,
String transactionId)
返回表(Table)或视图(View)的指定偏移量开始的多行数据。 |
List<Row> |
OTSClient.getRowsByRange(RangeRowQueryCriteria criteria,
String transactionId)
|
List<Row> |
OTS.getRowsByRange(RangeRowQueryCriteria criteria,
String transactionId)
返回表(Table)或视图(View)中主键(Primary Key)的特定范围内的多行数据。 |
RowListing |
OTSClient.getRowsByRange(RangeRowQueryCriteria criteria,
String transactionId,
String nextToken)
|
RowListing |
OTS.getRowsByRange(RangeRowQueryCriteria criteria,
String transactionId,
String nextToken)
返回表(Table)或视图(View)中主键(Primary Key)的特定范围内的多行数据。 |
TableMeta |
OTSClient.getTableMeta(String tableName)
|
TableMeta |
OTS.getTableMeta(String tableName)
返回表(Table)的结构信息。 |
List<String> |
OTSClient.listTableGroups()
|
List<String> |
OTS.listTableGroups()
返回表组(Table Group)名的列表。 |
List<String> |
OTSClient.listTables()
|
List<String> |
OTS.listTables()
返回表(Table)名的列表。 |
void |
OTSClient.putData(String tableName,
RowPutChange rowChange,
String transactionId)
|
void |
OTS.putData(String tableName,
RowPutChange rowChange,
String transactionId)
插入一行或修改指定行中的数据。 |
String |
OTSClient.startTransaction(String entityName,
PartitionKeyValue pkValue)
|
String |
OTS.startTransaction(String entityName,
PartitionKeyValue pkValue)
在表(Table)或表组(Table Group)上开始一个事务(Transaction),并得到该事务ID。 |
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||