java.lang.Object
com.aliyun.hitsdb.client.value.JSONValue
com.aliyun.hitsdb.client.value.request.Point
public class Point extends JSONValueEssentials of the nested class
Qualifier and type
Class and explanations
static classPoint.MetricBuilderBuilder Essentials
Builder and explanation
Point()Method Essentials
Qualifier and type
Method and explanation
static voidcheckPoint(Point point)Verify the time point formatStringgetAggregator()Get the Aggregator parameters.StringgetMetric()Get the Metric nameMap<String,String>getTags()Get the TagsLonggetTimestamp()Get the timestampNumbergetValue()Get the time valueLonggetVersion()Get the value version numberstatic Point.MetricBuildermetric(String metric)Set the Metric. Create and get a Point.MetricBuilder instance (Point builder)voidsetAggregator(String aggregator)Specifies to delete the queried data. Set the Aggregator.voidsetMetric(String metric)Specifies to delete the queried data. Set the Metric.voidsetTags(Map<String,String> tags)Specifies to delete the queried data. Set the Tags.voidsetTimestamp(Long timestamp)Specifies to delete the queried data. Set the timestamp.voidsetValue(Number value)Specifies to delete the queried data. Set the value.voidsetVersion(Long version)Specifies to delete the queried data. Set the time point version.StringtoJSON()Convert to JSONMethod of inheritance from a class com.aliyun.hitsdb.client.value. JSONValue
appendJSON, parseObject, toString
Method of inheritance from a class java.lang. Object
clone,equals,finalize,getClass,hashCode,notify,notifyAll,wait
Builder details
Point
public Point()
Method details
metric
public static Point.MetricBuilder metric(String metric)set the metric- Parameters:
metric- metric- Return:
- 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()- Override:
toJSONin classJSONValue
checkPoint
public static void checkPoint(Point point)Checkout the point format- Parameters:
point- point