类 CnosDBResultMapper
- 直接已知子类:
CnosDBMapper
- 作者:
- fmachado
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> List<T>toPOJO(QueryResult queryResult, Class<T> clazz) Process aQueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.<T> List<T>toPOJO(QueryResult queryResult, Class<T> clazz, String measurementName) Process aQueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.<T> List<T>toPOJO(QueryResult queryResult, Class<T> clazz, String measurementName, TimeUnit precision) Process aQueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.<T> List<T>toPOJO(QueryResult queryResult, Class<T> clazz, TimeUnit precision) Process aQueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.
-
构造器详细资料
-
CnosDBResultMapper
public CnosDBResultMapper()
-
-
方法详细资料
-
toPOJO
Process a
QueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.- 类型参数:
T- the target type- 参数:
queryResult- the CnosDB result objectclazz- the Class that will be used to hold your measurement data- 返回:
- a
Listof objects from the same Class passed as parameter and sorted on the same order as received from CnosDB. - 抛出:
CnosDBMapperException- IfQueryResultparameter contain errors,clazzparameter is not annotated with @Measurement or it was not possible to define the values of your POJO (e.g. due to an unsupported field type).
-
toPOJO
public <T> List<T> toPOJO(QueryResult queryResult, Class<T> clazz, TimeUnit precision) throws CnosDBMapperException Process a
QueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.- 类型参数:
T- the target type- 参数:
queryResult- the CnosDB result objectclazz- the Class that will be used to hold your measurement dataprecision- the time precision of results- 返回:
- a
Listof objects from the same Class passed as parameter and sorted on the same order as received from CnosDB. - 抛出:
CnosDBMapperException- IfQueryResultparameter contain errors,clazzparameter is not annotated with @Measurement or it was not possible to define the values of your POJO (e.g. due to an unsupported field type).
-
toPOJO
public <T> List<T> toPOJO(QueryResult queryResult, Class<T> clazz, String measurementName) throws CnosDBMapperException Process a
QueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.- 类型参数:
T- the target type- 参数:
queryResult- the CnosDB result objectclazz- the Class that will be used to hold your measurement datameasurementName- name of the Measurement- 返回:
- a
Listof objects from the same Class passed as parameter and sorted on the same order as received from CnosDB. - 抛出:
CnosDBMapperException- IfQueryResultparameter contain errors,clazzparameter is not annotated with @Measurement or it was not possible to define the values of your POJO (e.g. due to an unsupported field type).
-
toPOJO
public <T> List<T> toPOJO(QueryResult queryResult, Class<T> clazz, String measurementName, TimeUnit precision) throws CnosDBMapperException Process a
QueryResultobject returned by the CnosDB client inspecting the internal data structure and creating the respective object instances based on the Class passed as parameter.- 类型参数:
T- the target type- 参数:
queryResult- the CnosDB result objectclazz- the Class that will be used to hold your measurement datameasurementName- name of the Measurementprecision- the time precision of results- 返回:
- a
Listof objects from the same Class passed as parameter and sorted on the same order as received from CnosDB. - 抛出:
CnosDBMapperException- IfQueryResultparameter contain errors,clazzparameter is not annotated with @Measurement or it was not possible to define the values of your POJO (e.g. due to an unsupported field type).
-