ITPub博客

首页 > IT职业 > IT图书 > Influxdb中Select查询请求结果涉及到的一些数据结构

Influxdb中Select查询请求结果涉及到的一些数据结构

IT图书 作者:shatao2000 时间:2021-09-09 10:13:14 0 删除 编辑

前言

关于Select查询请求结果涉及到的一些数据结构

Series
  1. 定义

type Series struct {
    // Name is the measurement name.
    Name string

    // Tags for the series.
    Tags Tags

    id uint64
}
type Tags struct {
    id string
    m  map[string]string}
  1. Series其实就是measurement和tags的组合,tags是tag key和tag value的map.这个Tags的id是如何产生的呢,其实就是对tag key和tag value编码到[]byte: tagkey1

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4003/viewspace-2818435/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-17

  • 博文量
    74
  • 访问量
    753