Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update use-importer.md #2533

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs-2.0/nebula-importer/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ schema:
vertex:
vid:
index: 1
concatItems: # "c1{index0}c2{index1}2"
- "c1"
- 0
- c2
- 1
- "2"
function: hash
prefix: abc
tags:
Expand All @@ -274,6 +280,7 @@ schema:
|:---|:---|:---|:---|
|`files.schema.type`|-|是|Schema 的类型,可选值为`vertex`和`edge`。|
|`files.schema.vertex.vid.index`|-|否|点 ID 对应 CSV 文件中列的序号。|
|`files.schema.vertex.vid.concatItem`|-|否|用于连接两个或多个数组,连接项可以是`string`、`int`或者混合。`string`代表常量,`int`表示索引列。如果设置了`concatItem`,`index`参数将不生效。|
|`files.schema.vertex.vid.function`|-|否|生成 VID 的函数。目前,我们只支持 `hash` 函数。|
|`files.schema.vertex.vid.type`|-|否|点 ID 的数据类型,可选值为`int`和`string`。|
|`files.schema.vertex.vid.prefix`|-|否|给 原始vid 添加的前缀,当同时指定了 `function` 时, 生成 VID 的方法是先添加 `prefix` 前缀, 再用 `function`生成 VID。|
Expand Down