All Products
Search
Document Center

Tablestore:Data operations

Last Updated:Jun 30, 2025

This topic describes the data operations supported by Tablestore SDK for Java.

Operation

Description

Write data

Write data to a data table. You can write a single row of data or update multiple rows of data at the same time.

Update data

Update data in a data table. You can update a single row of data or update multiple rows of data at the same time.

Read data

Read data from a data table. You can read a single row of data, read data whose primary key values are in the specified range, read multiple rows of data at the same time, or read data by using an iterator.

Delete data

Delete data from a data table. You can delete a single row of data or update multiple rows of data at the same time.

Filter

Filter data on the server side based on specified conditions when you read data. Only rows that meet the conditions are returned.

Conditional update

You can use the conditional update feature to update data in a data table only if the specified conditions are met. If the conditions are not met, the update fails.

Atomic counter

The atomic counter feature allows you to specify a column as an atomic counter and perform atomic counter operations on the column.

Local transaction

After you enable local transaction for a data table, you can create a local transaction based on a partition key value. You can read and write data in the local transaction and then commit or discard the local transaction based on your business requirements.

Split data into shards of a specific size

You can divide data in a table into several logical splits whose sizes are approximately the specified value. The split points between the splits and the information about hosts on which the splits reside are returned.

Incremental data operations

Tablestore supports the following operations related to incremental data:

  • View the Stream information of a table.

  • Obtain the start iterator in a stream for reading a shard and obtain the update records of a shard in a stream.

Write offline data

To write data to a data table, you must specify the complete primary key information and the attribute columns that you want to add, remove, or modify.

Read offline data

After data is written to a data table, you can read the data based on specific conditions.