程序包 com.cnosdb.dto
类 Point.Builder
java.lang.Object
com.cnosdb.dto.Point.Builder
- 封闭类:
- Point
Builder for a new Point.
- 作者:
- stefan.majer [at] gmail.com
-
方法概要
修饰符和类型方法说明addFieldsFromPOJO(Object pojo) Adds field map from object by reflection usingColumnannotation.build()Create a new Point.已过时。Add a Map of fields to this point.booleanDoes this builder contain any fields?Add a tag to this point.Add a Map of tags to add to this point.Add a time to this point as long.Add a time to this point as Long.Add a time to this point.
-
方法详细资料
-
tag
Add a tag to this point.- 参数:
tagName- the tag namevalue- the tag value- 返回:
- the Builder instance.
-
tag
Add a Map of tags to add to this point.- 参数:
tagsToAdd- the Map of tags to add- 返回:
- the Builder instance.
-
field
已过时。Add a field to this point.- 参数:
field- the field namevalue- the value of this field- 返回:
- the Builder instance.
-
addField
-
addField
-
addField
-
addField
-
addField
-
addField
-
addField
-
addField
-
fields
Add a Map of fields to this point.- 参数:
fieldsToAdd- the fields to add- 返回:
- the Builder instance.
-
time
Add a time to this point.- 参数:
timeToSet- the time for this pointprecisionToSet- the TimeUnit- 返回:
- the Builder instance.
-
time
Add a time to this point as long. only kept for binary compatibility with previous releases.- 参数:
timeToSet- the time for this point as longprecisionToSet- the TimeUnit- 返回:
- the Builder instance.
-
time
Add a time to this point as Long. only kept for binary compatibility with previous releases.- 参数:
timeToSet- the time for this point as LongprecisionToSet- the TimeUnit- 返回:
- the Builder instance.
-
hasFields
public boolean hasFields()Does this builder contain any fields?- 返回:
- true, if the builder contains any fields, false otherwise.
-
addFieldsFromPOJO
Adds field map from object by reflection usingColumnannotation.- 参数:
pojo- POJO Object with annotationColumnon fields- 返回:
- the Builder instance
-
build
Create a new Point.- 返回:
- the newly created Point.
-