From e301294a771dbe87951ff6598511e455a7ee4923 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:42:25 +0800 Subject: [PATCH] add desc on delete mode for importer --- docs-2.0-en/import-export/use-importer.md | 4 ++-- docs-2.0-zh/import-export/use-importer.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs-2.0-en/import-export/use-importer.md b/docs-2.0-en/import-export/use-importer.md index 35f30ba99d4..4747622c939 100644 --- a/docs-2.0-en/import-export/use-importer.md +++ b/docs-2.0-en/import-export/use-importer.md @@ -405,7 +405,7 @@ The configuration mainly includes the following parts: |`sources.csv.withHeader` |`false`| No | Whether to ignore the first record in the CSV file. | |`sources.csv.lazyQuotes` |`false`| No | Whether to allow lazy quotes. If `lazyQuotes` is true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. | |`sources.tags.name` |-| Yes | The tag name. | -|`sources.tags.mode` |`INSERT`| No | Batch operation types, including insert, update and delete. Optional values are `INSERT`, `UPDATE` and `DELETE`. | +|`sources.tags.mode` |`INSERT`| No | Batch operation types, including insert, update and delete. Optional values are `INSERT`, `UPDATE` and `DELETE` (The `DELETE` type is supported starting from NebulaGraph importer version 4.1.0). | |`sources.tags.filter.expr` |-| No | Filter the data and only import if the filter conditions are met.
Supported comparison characters are `==`, `! =`, `<`, `>`, `<=` and `>=`.
Logical operators supported are `not` (!) , `and` (&&) and `or` (\|\|).
For example `(Record[0] == "Mahinda" or Record[0] == "Michael") and Record[3] == "male"`. | |`sources.tags.id.type` |`STRING`| No | The type of the VID. | |`sources.tags.id.function` |-| No | Functions to generate the VID. Currently, only function `hash` are supported. | @@ -420,7 +420,7 @@ The configuration mainly includes the following parts: |`sources.tags.props.alternativeIndices` |-| No | Ignored when `nullable` is `false`. The property is fetched from records according to the indices in order until not equal to `nullValue`. | |`sources.tags.props.defaultValue` |-| No | Ignored when `nullable` is `false`. The property default value, when all the values obtained by `index` and `alternativeIndices` are `nullValue`. | |`sources.edges.name` |-| Yes | The edge type name. | -|`sources.edges.mode` |`INSERT`| No | Batch operation types, including insert, update and delete. Optional values are `INSERT`, `UPDATE` and `DELETE`. | +|`sources.edges.mode` |`INSERT`| No | Batch operation types, including insert, update and delete. Optional values are `INSERT`, `UPDATE` and `DELETE` (The `DELETE` type is supported starting from NebulaGraph importer version 4.1.0). | |`sources.edges.filter.expr` |-| No | Filter the data and only import if the filter conditions are met.
Supported comparison characters are `==`, `! =`, `<`, `>`, `<=` and `>=`.
Logical operators supported are `not` (!) , `and` (&&) and `or` (\|\|).
For example `(Record[0] == "Mahinda" or Record[0] == "Michael") and Record[3] == "male"`. | |`sources.edges.src.id.type` |`STRING`| No | The data type of the VID at the starting vertex on the edge. | |`sources.edges.src.id.index` |-| Yes | The column number in the data file corresponding to the VID at the starting vertex on the edge. | diff --git a/docs-2.0-zh/import-export/use-importer.md b/docs-2.0-zh/import-export/use-importer.md index c7d36dfaf6d..738e97ebcd2 100644 --- a/docs-2.0-zh/import-export/use-importer.md +++ b/docs-2.0-zh/import-export/use-importer.md @@ -403,7 +403,7 @@ sources: |`sources.csv.withHeader` |`false`| 否 | 是否忽略 CSV 文件中的第一条记录。 | |`sources.csv.lazyQuotes` |`false`| 否 | 是否允许惰性解析引号。如果值为`true`,引号可以出现在非引号字段中,非双引号可以出现在引号字段中,而不会引发解析错误。 | |`sources.tags.name` |-| 是 | Tag 名称。 | -|`sources.tags.mode` |`INSERT`| 否 | 批量操作类型,包括导入、更新和删除。可选值为`INSERT`、`UPDATE`和`DELETE`。 | +|`sources.tags.mode` |`INSERT`| 否 | 批量操作类型,包括导入、更新和删除。可选值为`INSERT`、`UPDATE`和`DELETE`(NebulaGraph Importer 从 4.1.0 版本开始支持`DELETE`类型)。 | |`sources.tags.filter.expr` |-| 否 | 过滤数据,满足过滤条件的才会导入。支持的比较符为`==`、`!=`、`<`、`>`、`<=`和`>=`。支持的逻辑运算符为`not`(!)、`and`(&&)和`or`(\|\|)。例如`(Record[0] == "Mahinda" or Record[0] == "Michael") and Record[3] == "male"`。 | |`sources.tags.id.type` |`STRING`| 否 | VID 的类型。 | |`sources.tags.id.function` |-| 否 | 生成 VID 的函数。目前仅支持`hash`。 | @@ -418,7 +418,7 @@ sources: |`sources.tags.props.alternativeIndices` |-| 否 | 当`nullable`为`false`时忽略。该属性根据索引顺序从文件中获取,直到不等于`nullValue`。 | |`sources.tags.props.defaultValue` |-| 否 | 当`nullable`为`false`时忽略。根据`index`和`alternativeIndices`获取的所有值为`nullValue`时设置默认值。 | |`sources.edges.name` |-| 是 | Edge type 名称。 | -|`sources.edges.mode` |`INSERT`| 否 | 批量操作类型,包括导入、更新和删除。可选值为`INSERT`、`UPDATE`和`DELETE`。 | +|`sources.edges.mode` |`INSERT`| 否 | 批量操作类型,包括导入、更新和删除。可选值为`INSERT`、`UPDATE`和`DELETE`(NebulaGraph Importer 从 4.1.0 版本开始支持`DELETE`类型)。 | |`sources.edges.filter.expr` |-| 否 | 过滤数据,满足过滤条件的才会导入。支持的比较符为`==`、`!=`、`<`、`>`、`<=`和`>=`。支持的逻辑运算符为`not`(!)、`and`(&&)和`or`(\|\|)。例如`(Record[0] == "Mahinda" or Record[0] == "Michael") and Record[3] == "male"`。 | |`sources.edges.src.id.type` |`STRING`| 否 | 边上起点 VID 的数据类型。 | |`sources.edges.src.id.index` |-| 是 | 边上起点 VID 对应的数据文件中的列号。 |