public class BatchPoints
extends java.lang.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(java.lang.String database)
Create a new BatchPoints build to create a new BatchPoints in a fluent manner.
|
boolean |
equals(java.lang.Object o) |
InfluxDB.ConsistencyLevel |
getConsistency() |
java.lang.String |
getDatabase() |
java.util.List<Point> |
getPoints() |
java.util.concurrent.TimeUnit |
getPrecision() |
java.lang.String |
getRetentionPolicy() |
java.util.Map<java.lang.String,java.lang.String> |
getTags() |
int |
hashCode() |
boolean |
isMergeAbleWith(BatchPoints that)
Test whether is possible to merge two BatchPoints objects.
|
java.lang.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.
|
java.lang.String |
toString() |
public static BatchPoints.Builder builder()
public static BatchPoints.Builder database(java.lang.String database)
database - the name of the Databasepublic java.lang.String getDatabase()
public java.lang.String getRetentionPolicy()
public java.util.List<Point> getPoints()
public java.util.concurrent.TimeUnit getPrecision()
public BatchPoints point(Point point)
point - the Point to addpublic java.util.Map<java.lang.String,java.lang.String> getTags()
public InfluxDB.ConsistencyLevel getConsistency()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String lineProtocol()
public boolean isMergeAbleWith(BatchPoints that)
that - batch point to merge inpublic boolean mergeIn(BatchPoints that)
that - batch point to merge inData In Motion GmbH all rights reserved