すべてのプロダクト
Search
ドキュメントセンター

Tablestore:テーブル情報のクエリ

最終更新日:Aug 05, 2026

Tablestore SDK for Java は、テーブルスキーマ、テーブルオプション、ストリームのステータス、暗号化設定、予約済みスループット、およびセカンダリインデックスのメタデータを取得します。

前提条件

Tablestore SDK for Java をインストールし、クライアントを初期化します。

関数の説明

describeTable を呼び出して、テーブルのスキーマ、設定、ストリーム設定、サーバー側の暗号化設定、予約済みスループット、およびセカンダリインデックスを照会します。

public DescribeTableResponse describeTable(DescribeTableRequest request) throws TableStoreException, ClientException

次の例では、example_table にクエリを実行し、レスポンスの主なフィールドを出力します。

DescribeTableRequest request = new DescribeTableRequest("example_table");
DescribeTableResponse response = client.describeTable(request);

System.out.println("Table metadata: " + response.getTableMeta());
System.out.println("Table options: " + response.getTableOptions());
System.out.println("Stream details: " + response.getStreamDetails());
SSEDetails sseDetails = response.getSseDetails();
System.out.println("Encryption enabled: " + sseDetails.isEnable());
if (sseDetails.isEnable()) {
    System.out.println("Encryption type: " + sseDetails.getKeyType());
}
System.out.println("Reserved throughput: " + response.getReservedThroughputDetails());
System.out.println("Secondary indexes: " + response.getIndexMeta());
System.out.println("Partition split points: " + response.getShardSplits());
System.out.println("Creation time: " + response.getCreationTime());

パラメーター

DescribeTableRequest には、以下のパラメーターが含まれます。

名前

タイプ

説明

tableName (必須)

String

テーブルの名前。

レスポンス

DescribeTableResponse には、次の情報が含まれます。

フィールド

タイプ

説明

tableMeta

TableMeta

Call getTableMeta() to retrieve the table schema, including the table name, primary key columns, predefined columns, and table IDs.

reservedThroughputDetails

ReservedThroughputDetails

getReservedThroughputDetails() を呼び出して、現在の予約済みスループットと最新の増加および減少の時刻を取得します。

tableOptions

TableOptions

getTableOptions() を呼び出して、有効期間、最大バージョン数、最大時間偏差、更新が許可されているかどうか、および更新に完全な行を含める必要があるかどうかを含むテーブル設定を取得します。

shardSplits

List<PrimaryKey>

getShardSplits() を呼び出して、テーブルシャード間の分割ポイントを取得します。

streamDetails

StreamDetails

Call getStreamDetails() to retrieve the Stream settings, including whether Stream is enabled, the Stream ID, the expiration time, when Stream was most recently enabled, and the original columns.

sseDetails

SSEDetails

getSseDetails() を呼び出して、暗号化が有効になっているかどうか、キータイプ、キー ID、RAM ロール ARN などのサーバーサイド暗号化設定を取得します。

indexMeta

List<IndexMeta>

Call getIndexMeta() to retrieve the secondary index metadata, including the index name, primary key columns, predefined columns, index type, update mode, and synchronization phase.

creationTime

long

Call getCreationTime() to retrieve the table creation time in microseconds.