2022-05-21 01:42:38 +00:00
|
|
|
```java title="Native Connection"
|
2022-06-13 07:32:44 +00:00
|
|
|
{{#include docs/examples/java/src/main/java/com/taos/example/JNIConnectExample.java}}
|
2022-05-21 01:42:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```java title="REST Connection"
|
2022-06-13 07:32:44 +00:00
|
|
|
{{#include docs/examples/java/src/main/java/com/taos/example/RESTConnectExample.java:main}}
|
2022-05-21 01:42:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
When using REST connection, the feature of bulk pulling can be enabled if the size of resulting data set is huge.
|
|
|
|
|
|
|
|
|
|
```java title="Enable Bulk Pulling" {4}
|
2022-06-13 07:32:44 +00:00
|
|
|
{{#include docs/examples/java/src/main/java/com/taos/example/WSConnectExample.java:main}}
|
2022-05-21 01:42:38 +00:00
|
|
|
```
|
|
|
|
|
|
2024-08-12 06:02:40 +00:00
|
|
|
More configuration about connection, please refer to [Java Client Library](../../reference/connectors/java)
|