All Products
Search
Document Center

Tablestore:Java SDK

Last Updated:Dec 26, 2024

This topic describes the prerequisites, version compatibility, and historical versions of Tablestore SDK for Java. The content in this topic applies to Tablestore SDK for Java V5.0.0 or later.

Background information

Tablestore supports multiple data models, such as the Wide Column model, the TimeSeries model, and the Timeline model. This SDK reference mainly describes how to use the Wide Column model and the TimeSeries model. Use Tablestore SDK for Java based on the data model of your Tablestore instance, as described in the following table.

Data model

Procedure

Wide Column model

You can use Tablestore SDK for Java to manage the Wide Column model based on the following general procedure:

  1. Install Tablestore SDK for Java. For more information, see Install Tablestore SDK for Java.

  2. Initialize an OTSClient instance to configure a Tablestore instance that you want to access. For more information, see Initialize an OTSClient instance.

  3. Create a data table to store data. For more information, see Operations on tables.

  4. Read data from and write data to the table. For more information, see Basic operations on data and Incremental data operations.

  5. Use indexes to accelerate data queries. For more information, see Search indexes and Secondary index.

  6. Use the SQL query feature to query data. For more information, see SQL query.

Use other features based on your business requirements.

  • If you want to migrate data or use compute engines to process data, use Tunnel Service. For more information, see Tunnel Service.

  • If you want to deliver the data of Tablestore to Object Storage Service (OSS) in real time for storage and analysis, use the data delivery feature. For more information, see Data delivery.

TimeSeries model

You can use Tablestore SDK for Java to manage the TimeSeries model based on the following general procedure:

  1. Install Tablestore SDK for Java. For more information, see Install Tablestore SDK for Java.

  2. Initialize a TimeseriesClient instance to configure a Tablestore instance that you want to access. For more information, see Initialize an OTSClient instance.

  3. Create a time series table to store data. For more information, see Create time series tables.

  4. Read data from and write data to the table. For more information, see Write time series data and Query time series data.

  5. Retrieve time series. For more information, see Query time series.

  6. Use the SQL query feature to query data. For more information, see SQL query.

Version compatibility

The latest version of Tablestore SDK for Java is V5.x.x. The following section describes the compatibility of the latest version with earlier versions:

  • Tablestore SDK for Java V4.x.x: compatible

  • Tablestore SDK for Java V2.x.x: incompatible

For more information, see Version history of Tablestore SDK for Java.

References