You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,14 +82,14 @@ Note that the batching functionality creates an internal thread pool that needs
82
82
#### Gzip's support (version 2.5+ required):
83
83
84
84
influxdb-java client doesn't enable gzip compress for http request body by default. If you want to enable gzip to reduce transfer data's size , you can call:
85
-
```
85
+
```java
86
86
influxDB.enableGzip()
87
87
```
88
88
89
89
#### UDP's support (version 2.5+ required):
90
90
91
91
influxdb-java client support udp protocol now. you can call followed methods directly to write through UDP.
@@ -100,7 +100,7 @@ note: make sure write content's total size should not > UDP protocol's limit(64K
100
100
#### chunking support (version 2.6+ required, unreleased):
101
101
102
102
influxdb-java client now supports influxdb chunking. The following example uses a chunkSize of 20 and invokes the specified Consumer (e.g. System.out.println) for each received QueryResult
103
-
```
103
+
```java
104
104
Query query =newQuery("SELECT idle FROM cpu", dbName);
@@ -112,7 +112,7 @@ For additional usage examples have a look at [InfluxDBTest.java](https://github.
112
112
## Version
113
113
114
114
The latest version for maven dependence:
115
-
```
115
+
```xml
116
116
<dependency>
117
117
<groupId>org.influxdb</groupId>
118
118
<artifactId>influxdb-java</artifactId>
@@ -130,20 +130,26 @@ For version change history have a look at [ChangeLog](https://github.com/influxd
130
130
131
131
Then you can build influxdb-java with all tests with:
132
132
133
-
$ mvn clean install
133
+
```bash
134
+
$ mvn clean install
135
+
```
134
136
135
137
If you don't have Docker running locally, you can skip tests with -DskipTests flag set to true:
136
138
137
-
$ mvn clean install -DskipTests=true
139
+
```bash
140
+
$ mvn clean install -DskipTests=true
141
+
```
138
142
139
143
If you have Docker running, but it is not at localhost (e.g. you are on a Mac and using `docker-machine`) you can set an optional environment variable `INFLUXDB_IP` to point to the correct IP address:
140
144
141
-
$ export INFLUXDB_IP=192.168.99.100
142
-
$ mvn test
145
+
```bash
146
+
$ export INFLUXDB_IP=192.168.99.100
147
+
$ mvn test
148
+
```
143
149
144
150
For convenience we provide a small shell script which starts a influxdb server locally and executes `mvn clean install` with all tests inside docker containers.
0 commit comments