赛尔校园公共服务平台 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
赛尔校园公共服务平台 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 表格存储
  4. 开发参考
  5. SDK参考
  6. Go SDK
  7. 时序模型
  8. Lastpoint索引
  9. 删除Lastpoint索引

删除Lastpoint索引

  • Lastpoint索引
  • 发布于 2025-04-22
  • 0 次阅读
文档编辑
文档编辑

当不再需要使用Lastpoint索引获取时序表中各时间线的最新时间点时,您可以使用DeleteTimeseriesLastpointIndex接口删除Lastpoint索引。

注意事项

  • 表格存储Go SDK从v1.7.15版本开始支持Lastpoint索引功能。使用该功能时,请确保获取了正确的Go SDK版本。

  • 删除Lastpoint索引前,请确保相应Lastpoint索引未在实际业务中使用。

  • Lastpoint索引删除后不可恢复,请谨慎操作。

前提条件

  • 已创建Lastpoint索引。具体操作,请参见创建Lastpoint索引。

  • 已初始化TimeseriesClient。具体操作,请参见初始化TimeseriesClient。

参数

参数

说明

timeseriesTableName

时序表名称。

lastpointIndexName

Lastpoint索引名称。

示例

以下示例删除timeseries_table时序表下的Lastpoint索引last_point_index。

func deleteTimeseriesLastpointIndex(client *tablestore.TimeseriesClient) {
	request := tablestore.NewDeleteTimeseriesLastpointIndexRequest("test_timeseries_table", "last_point_index")
	_, err := client.DeleteTimeseriesLastpointIndex(request)
	if err != nil {
		log.Fatal(err)
	}
}
相关文章

创建Lastpoint索引 2025-04-22 14:24

Lastpoint索引可用于快速检索各时间线的最新时间点数据,您可以使用CreateTimeseriesLastpointIndex接口为时序表创建Lastpoint索引。创建Lastpoint索引时,您需要配置时序表名称和Lastpoint索引名称,以及根据需要配置是否在Lastpoint索引中包

查询Lastpoint索引数据 2025-04-22 14:24

本文介绍如何通过Go SDK查询Lastpoint索引数据。 注意事项 表格存储Go SDK从v1.7.15版本开始支持Lastpoint索引功能。使用该功能时,请将SDK版本升级到v1.7.15及以上版本。 前提条件

删除Lastpoint索引 2025-04-22 14:24

当不再需要使用Lastpoint索引获取时序表中各时间线的最新时间点时,您可以使用DeleteTimeseriesLastpointIndex接口删除Lastpoint索引。 注意事项 表格存

检索Lastpoint索引 2025-04-22 14:24

多元索引可以加速Lastpoint索引的数据检索,并提供多维查询和统计分析功能。本文介绍在Go SDK中如何通过多元索引来检索Lastpoint索引数据。 注意事项 表格存储Go SDK从v1.7.15版本开始支持Lastpoint索引功能。使用该功能时,请将SDK版本升级到v1.7.15及以上版本

目录
Copyright © 2025 your company All Rights Reserved. Powered by 赛尔网络.
京ICP备14022346号-15
gongan beian 京公网安备11010802041014号