程序包 com.cnosdb.dto
类 BatchPoints
java.lang.Object
com.cnosdb.dto.BatchPoints
{Purpose of This Type}.
{Other Notes Relating to This Type (Optional)}
- 作者:
- stefan
-
嵌套类概要
嵌套类修饰符和类型类说明static final classThe Builder to create a new BatchPoints instance. -
方法概要
修饰符和类型方法说明static BatchPoints.Builderbuilder()Create a new BatchPoints build to create a new BatchPoints in a fluent manner.static BatchPoints.BuilderCreate a new BatchPoints build to create a new BatchPoints in a fluent manner.booleangetTags()inthashCode()booleanisMergeAbleWith(BatchPoints that) Test whether is possible to merge two BatchPoints objects.calculate the lineprotocol for all Points.booleanmergeIn(BatchPoints that) Merge two BatchPoints objects.Add a single Point to these batches.toString()
-
方法详细资料
-
builder
Create a new BatchPoints build to create a new BatchPoints in a fluent manner.- 返回:
- the Builder to be able to add further Builder calls.
-
database
Create a new BatchPoints build to create a new BatchPoints in a fluent manner.- 参数:
database- the name of the Database- 返回:
- the Builder to be able to add further Builder calls.
-
getDatabase
- 返回:
- the database
-
getRetentionPolicy
- 返回:
- the retentionPolicy
-
getPoints
- 返回:
- the points
-
getPrecision
- 返回:
- the time precision unit
-
point
Add a single Point to these batches.- 参数:
point- the Point to add- 返回:
- this Instance to be able to daisy chain calls.
-
getTags
- 返回:
- the tags
-
getConsistency
- 返回:
- the consistency
-
equals
-
hashCode
public int hashCode() -
toString
-
lineProtocol
calculate the lineprotocol for all Points.- 返回:
- the String with newLines.
-
isMergeAbleWith
Test whether is possible to merge two BatchPoints objects.- 参数:
that- batch point to merge in- 返回:
- true if the batch points can be sent in a single HTTP request write
-
mergeIn
Merge two BatchPoints objects.- 参数:
that- batch point to merge in- 返回:
- true if the batch points have been merged into this BatchPoints instance. Return false otherwise.
-