程序包 com.cnosdb.dto

类 Point

java.lang.Object
com.cnosdb.dto.Point

public class Point extends Object
Representation of a CnosDB database Point.
作者:
stefan.majer [at] gmail.com
  • 方法详细资料

    • measurement

      public static Point.Builder measurement(String measurement)
      Create a new Point Build build to create a new Point in a fluent manner.
      参数:
      measurement - the name of the measurement.
      返回:
      the Builder to be able to add further Builder calls.
    • measurementByPOJO

      public static Point.Builder measurementByPOJO(Class<?> clazz)
      Create a new Point Build build to create a new Point in a fluent manner from a POJO.
      参数:
      clazz - Class of the POJO
      返回:
      the Builder instance
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • lineProtocol

      public String lineProtocol()
      Calculate the lineprotocol entry for a single Point.

      NaN and infinity values are silently dropped as they are unsupported: https://github.com/influxdata/influxdb/issues/4089

      返回:
      the String without newLine, empty when there are no fields to write
      另请参阅:
    • lineProtocol

      public String lineProtocol(TimeUnit precision)
      Calculate the lineprotocol entry for a single point, using a specific TimeUnit for the timestamp.

      NaN and infinity values are silently dropped as they are unsupported: https://github.com/influxdata/influxdb/issues/4089

      参数:
      precision - the time precision unit for this point
      返回:
      the String without newLine, empty when there are no fields to write
      另请参阅: