Skip to content

Commit

Permalink
spark-connector add withDeleteEdge (#2074)
Browse files Browse the repository at this point in the history
* spark-connector add withDeleteEdge

* update
  • Loading branch information
cooper-lzy authored Aug 19, 2022
1 parent 1413cf7 commit 01c81d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs-2.0/nebula-spark-connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ val nebulaWriteEdgeConfig: WriteNebulaEdgeConfig = WriteNebulaEdgeConfig
df.write.nebula(config, nebulaWriteEdgeConfig).writeEdges()
```

默认写入模式为`insert`,可以通过`withWriteMode`配置修改为`update`
默认写入模式为`insert`,可以通过`withWriteMode`配置修改为`update``delete`

```scala
val config = NebulaConnectionConfig
Expand Down Expand Up @@ -234,7 +234,8 @@ df.write.nebula(config, nebulaWriteVertexConfig).writeVertices()
|`withUser` || NebulaGraph 用户名。若未开启[身份验证](7.data-security/1.authentication/1.authentication.md),无需配置用户名和密码。 |
|`withPasswd` || NebulaGraph 用户名对应的密码。 |
|`withBatch` || 一次写入的数据行数,默认值为`512`。当`withWriteMode``update`时,该参数的最大值为`512`|
|`withWriteMode`||写入模式。可选值为`insert``update`。默认为`insert`|
|`withWriteMode`||写入模式。可选值为`insert``update``delete`。默认为`insert`|
|`withDeleteEdge`||删除点时是否删除该点关联的边。默认为`false`。当`withWriteMode``delete`时生效。 |

- `WriteNebulaEdgeConfig`是写入边的配置,说明如下。

Expand All @@ -253,7 +254,7 @@ df.write.nebula(config, nebulaWriteVertexConfig).writeVertices()
|`withUser` || NebulaGraph 用户名。若未开启[身份验证](7.data-security/1.authentication/1.authentication.md),无需配置用户名和密码。 |
|`withPasswd` || NebulaGraph 用户名对应的密码。 |
|`withBatch` || 一次写入的数据行数,默认值为`512`。当`withWriteMode``update`时,该参数的最大值为`512`|
|`withWriteMode`||写入模式。可选值为`insert``update`。默认为`insert`|
|`withWriteMode`||写入模式。可选值为`insert``update``delete`。默认为`insert`|

### 示例代码

Expand Down

0 comments on commit 01c81d0

Please sign in to comment.