public static final class BatchPoints.Builder
extends java.lang.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(java.util.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(java.util.concurrent.TimeUnit precision)
Set the time precision to use for the whole batch.
|
BatchPoints.Builder |
retentionPolicy(java.lang.String policy)
The retentionPolicy to use.
|
BatchPoints.Builder |
tag(java.lang.String tagName,
java.lang.String value)
Add a tag to this set of points.
|
public BatchPoints.Builder retentionPolicy(java.lang.String policy)
policy - the retentionPolicy to usepublic BatchPoints.Builder tag(java.lang.String tagName, java.lang.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(java.util.Collection<Point> pointsToAdd)
pointsToAdd - the Points to addpublic BatchPoints.Builder consistency(InfluxDB.ConsistencyLevel consistencyLevel)
InfluxDB.ConsistencyLevel.ONEconsistencyLevel - the ConsistencyLevelpublic BatchPoints.Builder precision(java.util.concurrent.TimeUnit precision)
TimeUnit.NANOSECONDSprecision - public BatchPoints build()
Data In Motion GmbH all rights reserved