全部产品
Search
文档中心

时间序列数据库 TSDB:Point

更新时间:Apr 24, 2022

本文介绍Point方法。

java.lang.Object

com.aliyun.hitsdb.client.value.JSONValue

com.aliyun.hitsdb.client.value.request.Point

嵌套类概要

限定符和类型

类和说明

static class

Point.MetricBuilder

构造器概要

构造器和说明

Point()

方法概要

限定符和类型

方法和说明

static void

checkPoint(Point point) 校验时间点格式

String

getAggregator() 获取Aggregator参数。

String

getMetric() 获取Metric名称

Map<String,String>

getTags() 获取Tags

Long

getTimestamp() 获取时间戳

Number

getValue() 获取时间数值

Long

getVersion() 获取数值版本号

static Point.MetricBuilder

metric(String metric) 设置Metric。创建并获取一个Point.MetricBuilder实例(Point构建器类)

void

setAggregator(String aggregator) 不推荐使用该方法。设置Aggregator。

void

setMetric(String metric) 不推荐使用该方法。设置Metric。

void

setTags(Map<String,String> tags) 不推荐使用该方法。设置Tags。

void

setTimestamp(Long timestamp) 不推荐使用该方法。设置时间戳。

void

setValue(Number value) 不推荐使用该方法。设置数值。

void

setVersion(Long version) 不推荐使用该方法。设置时间点版本。

String

toJSON() 转换为JSON

从类继承的方法 com.aliyun.hitsdb.client.value.JSONValue

appendJSON ,  parseObject ,  toString

从类继承的方法 java.lang.Object

clone,  equals ,  finalize ,  getClass ,  hashCode ,  notify ,  notifyAll ,  wait ,  wait ,  wait

构造器详细资料

Point

public Point()

方法详细资料

metric

public static Point.MetricBuilder metric(String metric)

set the metric

参数:

metric - metric

返回:

MetricBuilder get a builder

getMetric

public String getMetric()

getTags

public Map<String,String> getTags()

getTimestamp

public Long getTimestamp()

getValue

public Number getValue()

getAggregator

public String getAggregator()

getGranularityType

public Granularity getGranularityType()

getGranularity

public String getGranularity()

setMetric

public void setMetric(String metric)

setTags

public void setTags(Map<String,String> tags)

setTimestamp

public void setTimestamp(Long timestamp)

setValue

public void setValue(Number value)

setGranularity

public void setGranularity(String granularity)

setAggregator

public void setAggregator(String aggregator)

getVersion

public Long getVersion()

setVersion

public void setVersion(Long version)

toJSON

public String toJSON()

覆盖:

toJSON 在类中 JSONValue

checkPoint

public static void checkPoint(Point point)

Checkout the point format

参数:

point - point