程序包 com.cnosdb.dto
类 BatchPoints.Builder
java.lang.Object
com.cnosdb.dto.BatchPoints.Builder
- 封闭类:
- BatchPoints
The Builder to create a new BatchPoints instance.
-
方法概要
修饰符和类型方法说明build()Create a new BatchPoints instance.consistency(CnosDB.ConsistencyLevel consistencyLevel) Set the ConsistencyLevel to use.Add a Point to this set of points.Add a set of Points to this set of points.points(Collection<Point> pointsToAdd) Add a set of Points to this set of points.Set the time precision to use for the whole batch.retentionPolicy(String policy) The retentionPolicy to use.Add a tag to this set of points.
-
方法详细资料
-
retentionPolicy
The retentionPolicy to use.- 参数:
policy- the retentionPolicy to use- 返回:
- the Builder instance
-
tag
Add a tag to this set of points.- 参数:
tagName- the tag namevalue- the tag value- 返回:
- the Builder instance.
-
point
Add a Point to this set of points.- 参数:
pointToAdd- the Point to add- 返回:
- the Builder instance
-
points
Add a set of Points to this set of points.- 参数:
pointsToAdd- the Points to add- 返回:
- the Builder instance
-
points
Add a set of Points to this set of points.- 参数:
pointsToAdd- the Points to add- 返回:
- the Builder instance
-
consistency
Set the ConsistencyLevel to use. If not given it defaults toCnosDB.ConsistencyLevel.ONE- 参数:
consistencyLevel- the ConsistencyLevel- 返回:
- the Builder instance
-
precision
Set the time precision to use for the whole batch. If unspecified, will default toTimeUnit.NANOSECONDS- 参数:
precision- the precision of the points- 返回:
- the Builder instance
-
build
Create a new BatchPoints instance.- 返回:
- the created BatchPoints.
-