File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
### InfluxDBMapper
2
2
3
- In case you want to use models only you can use the InfluxDBMapper to save and load measurements.
3
+ In case you want to use models only, you can use the InfluxDBMapper to save and load measurements.
4
4
You can create models that specify the database the measurement and the retention policy.
5
5
6
6
``` Java
@@ -25,7 +25,7 @@ public class Cpu {
25
25
Save operation using a model.
26
26
27
27
``` Java
28
- Cpu cpu = . . create the cpu measure
28
+ Cpu cpu = .. , create the cpu measure
29
29
influxDBMapper. save(cpu);
30
30
```
31
31
@@ -35,10 +35,10 @@ Load data using a model.
35
35
Cpu persistedCpu = influxDBMapper. query(Cpu . class). get(0 );
36
36
```
37
37
38
- Load data using a query and specify the model fro mapping.
38
+ Load data using a query and specify the model for mapping.
39
39
40
40
``` java
41
- Query query = . . create your query
41
+ Query query = ... create your query
42
42
List<Cpu > persistedMeasure = influxDBMapper. query(query,Cpu . class);
43
43
```
44
44
You can’t perform that action at this time.
0 commit comments