public class Point extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Point.Builder
Builder for a new Point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
lineProtocol()
Calculate the lineprotocol entry for a single Point.
|
String |
lineProtocol(TimeUnit precision)
Calculate the lineprotocol entry for a single point, using a specific
TimeUnit for the timestamp. |
static Point.Builder |
measurement(String measurement)
Create a new Point Build build to create a new Point in a fluent manner.
|
static Point.Builder |
measurementByPOJO(Class<?> clazz)
Create a new Point Build build to create a new Point in a fluent manner from a POJO.
|
String |
toString() |
public static Point.Builder measurement(String measurement)
measurement
- the name of the measurement.public static Point.Builder measurementByPOJO(Class<?> clazz)
clazz
- Class of the POJOpublic String lineProtocol()
NaN and infinity values are silently dropped as they are unsupported: https://github.com/influxdata/influxdb/issues/4089
public String lineProtocol(TimeUnit precision)
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 pointCopyright © 2022. All rights reserved.