Skip to content

Commit

Permalink
add desc on delete mode for importer (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Aug 30, 2024
1 parent 0300ab7 commit f658338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs-2.0-en/import-export/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. </br>Supported comparison characters are `==`, `! =`, `<`, `>`, `<=` and `>=`. </br>Logical operators supported are `not` (!) , `and` (&&) and `or` (\|\|). </br>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. |
Expand All @@ -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. </br>Supported comparison characters are `==`, `! =`, `<`, `>`, `<=` and `>=`. </br>Logical operators supported are `not` (!) , `and` (&&) and `or` (\|\|). </br>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. |
Expand Down
4 changes: 2 additions & 2 deletions docs-2.0-zh/import-export/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`。 |
Expand All @@ -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 对应的数据文件中的列号。 |
Expand Down

0 comments on commit f658338

Please sign in to comment.