public class InfluxDBResultMapper extends Object
| Constructor and Description |
|---|
InfluxDBResultMapper() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
toPOJO(QueryResult queryResult,
Class<T> clazz)
Process a
QueryResult object returned by the InfluxDB 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 a
QueryResult object returned by the InfluxDB client inspecting the internal
data structure and creating the respective object instances based on the Class passed as
parameter. |
public <T> List<T> toPOJO(QueryResult queryResult, Class<T> clazz) throws InfluxDBMapperException
Process a QueryResult object returned by the InfluxDB client inspecting the internal
data structure and creating the respective object instances based on the Class passed as
parameter.
T - the target typequeryResult - the InfluxDB result objectclazz - the Class that will be used to hold your measurement dataList of objects from the same Class passed as parameter and sorted on the
same order as received from InfluxDB.InfluxDBMapperException - If QueryResult parameter contain errors,
clazz parameter 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).public <T> List<T> toPOJO(QueryResult queryResult, Class<T> clazz, String measurementName) throws InfluxDBMapperException
Process a QueryResult object returned by the InfluxDB client inspecting the internal
data structure and creating the respective object instances based on the Class passed as
parameter.
T - the target typequeryResult - the InfluxDB result objectclazz - the Class that will be used to hold your measurement datameasurementName - name of the MeasurementList of objects from the same Class passed as parameter and sorted on the
same order as received from InfluxDB.InfluxDBMapperException - If QueryResult parameter contain errors,
clazz parameter 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).Copyright © 2018. All rights reserved.