org.influxdb.impl.InfluxDBResultMapper Java Examples
The following examples show how to use
org.influxdb.impl.InfluxDBResultMapper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InfluxDBConnectionLiveTest.java From tutorials with MIT License | 5 votes |
private List<MemoryPoint> getPoints(InfluxDB connection, String query, String databaseName) { // Run the query Query queryObject = new Query(query, databaseName); QueryResult queryResult = connection.query(queryObject); // Map it InfluxDBResultMapper resultMapper = new InfluxDBResultMapper(); return resultMapper.toPOJO(queryResult, MemoryPoint.class); }