public interface TimestreamDB
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭client,释放资源
请确保在所有请求执行完毕之后释放资源。
|
void |
createDataTable(String tableName)
创建数据表
|
void |
createMetaTable()
创建meta表,不为attributes创建索引
|
void |
createMetaTable(List<AttributeIndexSchema> indexForAttributes)
创建meta表,为指定的attributes创建索引
attribute不能为保留字段(h、n、t、s)
|
TimestreamDataTable |
dataTable(String tableName)
获取数据表的操作对象
|
void |
deleteDataTable(String tableName)
删除数据表
|
void |
deleteMetaTable()
删除meta表
|
TimestreamMetaTable |
metaTable()
获取meta表的操作对象
|
void close()
请确保在所有请求执行完毕之后释放资源。释放资源之后将不能再发送请求,正在执行的请求可能无法返回结果。
void createMetaTable()
void createMetaTable(List<AttributeIndexSchema> indexForAttributes)
attribute不能为保留字段(h、n、t、s)
void deleteMetaTable()
void createDataTable(String tableName)
tableName
- 数据表表名void deleteDataTable(String tableName)
tableName
- 数据表表名TimestreamMetaTable metaTable()
TimestreamDataTable dataTable(String tableName)
tableName
- 数据表表名Copyright © 2019. All Rights Reserved.