public class BatchPoints extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BatchPoints.Builder
The Builder to create a new BatchPoints instance.
|
Modifier and Type | Method and Description |
---|---|
static BatchPoints.Builder |
builder()
Create a new BatchPoints build to create a new BatchPoints in a fluent manner.
|
static BatchPoints.Builder |
database(String database)
Create a new BatchPoints build to create a new BatchPoints in a fluent manner.
|
boolean |
equals(Object o) |
InfluxDB.ConsistencyLevel |
getConsistency() |
String |
getDatabase() |
List<Point> |
getPoints() |
TimeUnit |
getPrecision() |
String |
getRetentionPolicy() |
Map<String,String> |
getTags() |
int |
hashCode() |
boolean |
isMergeAbleWith(BatchPoints that)
Test whether is possible to merge two BatchPoints objects.
|
String |
lineProtocol()
calculate the lineprotocol for all Points.
|
boolean |
mergeIn(BatchPoints that)
Merge two BatchPoints objects.
|
BatchPoints |
point(Point point)
Add a single Point to these batches.
|
String |
toString() |
public static BatchPoints.Builder builder()
public static BatchPoints.Builder database(String database)
database
- the name of the Databasepublic String getDatabase()
public String getRetentionPolicy()
public TimeUnit getPrecision()
public BatchPoints point(Point point)
point
- the Point to addpublic InfluxDB.ConsistencyLevel getConsistency()
public String lineProtocol()
public boolean isMergeAbleWith(BatchPoints that)
that
- batch point to merge inpublic boolean mergeIn(BatchPoints that)
that
- batch point to merge inCopyright © 2022. All rights reserved.