public static final class BatchPoints.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
BatchPoints |
build()
Create a new BatchPoints instance.
|
BatchPoints.Builder |
consistency(InfluxDB.ConsistencyLevel consistencyLevel)
Set the ConsistencyLevel to use.
|
BatchPoints.Builder |
point(Point pointToAdd)
Add a Point to this set of points.
|
BatchPoints.Builder |
points(Collection<Point> pointsToAdd)
Add a set of Points to this set of points.
|
BatchPoints.Builder |
points(Point... pointsToAdd)
Add a set of Points to this set of points.
|
BatchPoints.Builder |
precision(TimeUnit precision)
Set the time precision to use for the whole batch.
|
BatchPoints.Builder |
retentionPolicy(String policy)
The retentionPolicy to use.
|
BatchPoints.Builder |
tag(String tagName,
String value)
Add a tag to this set of points.
|
public BatchPoints.Builder retentionPolicy(String policy)
policy - the retentionPolicy to usepublic BatchPoints.Builder tag(String tagName, String value)
tagName - the tag namevalue - the tag valuepublic BatchPoints.Builder point(Point pointToAdd)
pointToAdd - the Point to addpublic BatchPoints.Builder points(Point... pointsToAdd)
pointsToAdd - the Points to addpublic BatchPoints.Builder points(Collection<Point> pointsToAdd)
pointsToAdd - the Points to addpublic BatchPoints.Builder consistency(InfluxDB.ConsistencyLevel consistencyLevel)
InfluxDB.ConsistencyLevel.ONEconsistencyLevel - the ConsistencyLevelpublic BatchPoints.Builder precision(TimeUnit precision)
TimeUnit.NANOSECONDSprecision - the precision of the pointspublic BatchPoints build()
Copyright © 2022. All rights reserved.