All Products
Search
Document Center

Time Series Database:Point

Last Updated:Apr 24, 2022

  • java.lang.Object

  • com.aliyun.hitsdb.client.value.JSONValue

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

public class Point extends JSONValue
  • Essentials of the nested class

    Qualifier and type

    Class and explanations

    static class

    Point.MetricBuilder

    • Builder Essentials

      Builder and explanation

      Point()

    • Method Essentials

      Qualifier and type

      Method and explanation

      static void

      checkPoint(Point point)

      Verify the time point format

      String

      getAggregator()

      Get the Aggregator parameters.

      String

      getMetric()

      Get the Metric name

      Map<String,String>

      getTags()

      Get the Tags

      Long

      getTimestamp()

      Get the timestamp

      Number

      getValue()

      Get the time value

      Long

      getVersion()

      Get the value version number

      static Point.MetricBuilder

      metric(String metric)

      Set the Metric. Create and get a Point.MetricBuilder instance (Point builder)

      void

      setAggregator(String aggregator)

      Specifies to delete the queried data. Set the Aggregator.

      void

      setMetric(String metric)

      Specifies to delete the queried data. Set the Metric.

      void

      setTags(Map<String,String> tags)

      Specifies to delete the queried data. Set the Tags.

      void

      setTimestamp(Long timestamp)

      Specifies to delete the queried data. Set the timestamp.

      void

      setValue(Number value)

      Specifies to delete the queried data. Set the value.

      void

      setVersion(Long version)

      Specifies to delete the queried data. Set the time point version.

      String

      toJSON()

      Convert to JSON
      • Method 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:
        toJSON in class JSONValue
      • checkPoint

        public static void checkPoint(Point point)
        Checkout the point format
        Parameters:
        point - point