当前位置:懂科普 >

IT科技

> java influxdb

java influxdb

<link rel="stylesheet" href="https://js.how234.com/3f0e869d6d/260484806ecf5e3f60c68fd45fc34391a2/260993986ac4/2615a99b7dd2.css" type="text/css" /><link rel="stylesheet" href="https://js.how234.com/3f0e869d6d/260484806ecf5e3f60c68fd45fc34391a2/260993986ac4/2615be9c6ada531262c882c854df.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><style>pre{overflow-x: auto}</style>

   <link rel="stylesheet" href="https://js.how234.com/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><script type="text/javascript"> SyntaxHighlighter.all(); </script>

java influxdb是什么,让我们一起了解一下?

influxdb是一个开源分布式时序、事件和指标数据库,使用 Go 语言编写,无需外部依赖。其设计目标是实现分布式和水平伸缩扩展。

平常我们经常使用的InfluxDB2.0语法是怎样的?

1、from 指定数据源bucket。

2、range 指定起始时间段。

3、filter 过滤。

4、yield作为查询结果输出过滤的tables。

5、aggregateWindow函数,可结合参数every输出持续时间,比如每5s,createEmpty:true没有数据返回一行空数据,可结合fill(usePrevious: true)将此空数据赋值为前一条非空的数据值。

java influxdb

InfluxDB在Java中是如何使用的?

InfluxDB(时序数据库),常用的一种使用场景:监控数据统计。每毫秒记录一下电脑内存的使用情况,然后就可以根据统计的数据,利用图形化界面(InfluxDB V1一般配合Grafana)制作内存使用情况的折线图。

package com.influxdb.pojo; import java.io.Serializable; public class CodeInfo implements Serializable{ private static final long serialVersionUID = 1L;private Long id;private String name;private String code;private String descr;private String descrE;private String createdBy;private Long createdAt;private String time;private String tagCode;private String tagName; public Long getId() {return id;} public void setId(Long id) {this.id = id;} public String getName() {return name;} public void setName(String name) {this.name = name;} public String getCode() {return code;} public void setCode(String code) {this.code = code;} public String getDescr() {return descr;} public void setDescr(String descr) {this.descr = descr;} public String getDescrE() {return descrE;} public void setDescrE(String descrE) {this.descrE = descrE;} public String getCreatedBy() {return createdBy;} public void setCreatedBy(String createdBy) {this.createdBy = createdBy;} public Long getCreatedAt() {return createdAt;} public void setCreatedAt(Long createdAt) {this.createdAt = createdAt;} public String getTime() {return time;} public void setTime(String time) {this.time = time;} public String getTagCode() {return tagCode;} public void setTagCode(String tagCode) {this.tagCode = tagCode;} public String getTagName() {return tagName;} public void setTagName(String tagName) {this.tagName = tagName;} }

标签: influxdb java
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/yxloek.html