_connect_java.mdx 602 字节
Newer Older
G
gccgdb1234 已提交
1
```java title="Native Connection"
D
dingbo 已提交
2 3
{{#include docs-examples/java/src/main/java/com/taos/example/JNIConnectExample.java}}
```
D
dingbo 已提交
4

G
gccgdb1234 已提交
5
```java title="REST Connection"
D
dingbo 已提交
6 7
{{#include docs-examples/java/src/main/java/com/taos/example/RESTConnectExample.java:main}}
```
D
dingbo 已提交
8

G
gccgdb1234 已提交
9 10 11
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}
D
dingbo 已提交
12 13
{{#include docs-examples/java/src/main/java/com/taos/example/WSConnectExample.java:main}}
```
D
dingbo 已提交
14 15

More configuration about connection,please refer to [Java Connector](/reference/connector/java)