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

Merge 3.0.0 to master #1484

Merged
merged 257 commits into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
9f522e7
Update deploy.yaml
whitewum Jan 14, 2022
4e1d1a8
Update deploy.yaml
whitewum Jan 14, 2022
942e36a
Update studio & color
foesa-yang Jan 14, 2022
aba4d88
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Jan 14, 2022
39176b0
Update mkdocs.yml
foesa-yang Jan 17, 2022
be8eb16
Update 2.balance-syntax.md (#1394)
cooper-lzy Jan 17, 2022
696fbc1
update cheatsheet (#1393)
cooper-lzy Jan 17, 2022
0f5c026
studio
foesa-yang Jan 17, 2022
f7ad1a5
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Jan 17, 2022
c077eee
Update 3.vid.md
whitewum Jan 17, 2022
75d677a
Delete overrides/partials directory
cooper-lzy Jan 17, 2022
4150701
fix links (#1395)
cooper-lzy Jan 17, 2022
7970834
Update 2.how-to-create-subsciption.md
foesa-yang Jan 17, 2022
c5c5192
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Jan 17, 2022
47b189d
Update 3.property-reference.md
whitewum Jan 17, 2022
b9af85b
Update 2.boolean.md
whitewum Jan 17, 2022
de437d5
Update 12.hash.md
whitewum Jan 17, 2022
3492175
update
foesa-yang Jan 17, 2022
325886d
Update 2.match.md
whitewum Jan 17, 2022
ff0d8ab
fix links (#1397)
cooper-lzy Jan 17, 2022
ab26707
Update 2.match.md
whitewum Jan 17, 2022
77ea47c
Update optional-match.md
whitewum Jan 17, 2022
666d5bc
Update 5.lookup.md
whitewum Jan 17, 2022
6f5e329
Update 5.lookup.md
whitewum Jan 17, 2022
c85e91e
Update 3.go.md
whitewum Jan 17, 2022
66580ed
Update 3.go.md
whitewum Jan 17, 2022
494d7a0
Update 3.go.md
whitewum Jan 17, 2022
75e1389
Update 3.go.md
whitewum Jan 17, 2022
b0b8bca
Space level metrics (#1396)
abby-cyber Jan 17, 2022
e9bc1fa
Update limit syntax in GO (#1398)
randomJoe211 Jan 17, 2022
1d023a3
Update 3.go.md
randomJoe211 Jan 17, 2022
53f799e
nGQL cheatsheet added (#1399)
abby-cyber Jan 17, 2022
673a9cb
Update 2.deploy-connect-dashboard-ent.md (#1401)
abby-cyber Jan 17, 2022
2066db0
Add cloud picture and change name (#1402)
foesa-yang Jan 17, 2022
c38845e
Update 1.install-nebula-graph-by-compiling-the-source-code.md
cooper-lzy Jan 18, 2022
1ee9ac3
Update 5.2.connection-configuration-and-use.md
cooper-lzy Jan 18, 2022
95a4110
Update mkdocs.yml
foesa-yang Jan 18, 2022
ab51075
fix typo (#1404)
cooper-lzy Jan 18, 2022
21bcf3f
version correspondence between dashboard & nebula (#1405)
abby-cyber Jan 18, 2022
e197878
update algorithm (#1406)
cooper-lzy Jan 18, 2022
7969bbb
Update limit.md
whitewum Jan 18, 2022
6ecdad5
Update sample.md
whitewum Jan 18, 2022
8396522
Update 1.create-space.md
whitewum Jan 18, 2022
9da9d18
Update 1.create-space.md
whitewum Jan 18, 2022
2926311
Update 2.drop-tag.md
whitewum Jan 18, 2022
80bef9b
Update README.md
whitewum Jan 18, 2022
7242138
Update README.md
whitewum Jan 18, 2022
51abffc
Update 4.delete-edge.md
cooper-lzy Jan 18, 2022
d767827
Update 4.delete-edge.md
whitewum Jan 18, 2022
706c782
Update 2.graph-modeling.md
whitewum Jan 18, 2022
29cc46d
Update 2.1.path.md
foesa-yang Jan 18, 2022
62ebee5
Update 1.insert-edge.md
whitewum Jan 18, 2022
9ed3f57
Update 2.show-native-indexes.md
whitewum Jan 18, 2022
6774000
Update nebula-algorithm.md
cooper-lzy Jan 18, 2022
66b1e7b
Update 2.1.show-create-index.md
whitewum Jan 18, 2022
023a621
Update 1.text-based-index-restrictions.md
whitewum Jan 18, 2022
94325bd
Update source_manage-service.md
foesa-yang Jan 18, 2022
19567d3
Update 1.text-based-index-restrictions.md
whitewum Jan 18, 2022
9d721f6
Update 4.nebula-graph-crud.md
foesa-yang Jan 18, 2022
a1518ae
Update 2.find-path.md
whitewum Jan 18, 2022
e5895c9
Update 2.find-path.md
whitewum Jan 18, 2022
0eab6b6
Add ranking config in exchange examples (#1407)
randomJoe211 Jan 18, 2022
575217e
add license check (#1410)
cooper-lzy Jan 18, 2022
e14beff
Update 2.match.md
cooper-lzy Jan 18, 2022
6f8ec7d
Update 2.match.md
cooper-lzy Jan 18, 2022
c3a79ff
Update nebula-plato.md (#1411)
abby-cyber Jan 18, 2022
64f408d
Update 1.nebula-client.md
cooper-lzy Jan 18, 2022
d6e6c8f
update start sh
NicolaCage Jan 18, 2022
9e164f5
update stop sh
NicolaCage Jan 18, 2022
998b9c0
update stop sh
NicolaCage Jan 18, 2022
1259893
change start service setting
NicolaCage Jan 18, 2022
10057b2
update start
NicolaCage Jan 18, 2022
f4e5aca
Update nebula-plato.md
cooper-lzy Jan 19, 2022
b22d8cf
Add ranking config in exchange examples (#1412)
randomJoe211 Jan 19, 2022
1593711
timestamp_in_logfile_name and logrotate faq (#1400)
randomJoe211 Jan 19, 2022
557b93f
Fix exchange conf link (#1414)
randomJoe211 Jan 19, 2022
486d586
Update note.css
foesa-yang Jan 20, 2022
a392d1d
Update 3.cluster-information.md
abby-cyber Jan 20, 2022
0051f25
disable balance data (#1416)
cooper-lzy Jan 20, 2022
98e4e24
update config shell
NicolaCage Jan 20, 2022
8d9f575
update nebula-dashboard server config
NicolaCage Jan 20, 2022
3b13bdb
fix schema rule (#1418)
cooper-lzy Jan 21, 2022
742bcbf
Update README.md
whitewum Jan 21, 2022
6f8a9ec
Update 2.deploy-dashboard.md
cooper-lzy Jan 21, 2022
99972ef
Add next step
randomJoe211 Jan 21, 2022
c8e2993
Update mkdocs.yml (#1422)
abby-cyber Jan 24, 2022
1e07dde
Update 1.what-is-dashboard-ent.md
abby-cyber Jan 24, 2022
c9ba105
[WIP]update Studio (#1419)
foesa-yang Jan 24, 2022
6e58ad5
[wip] explore 216 --what is explorer & deployment updates (#1417)
abby-cyber Jan 24, 2022
e8eeba3
[WIP] explorer220-overview (#1421)
abby-cyber Jan 24, 2022
07eb67d
Update st-ug-what-is-graph-studio.md
foesa-yang Jan 24, 2022
f711fda
Explorer220 query (#1423)
abby-cyber Jan 24, 2022
8f45266
Update st-ug-crud-tag.md
foesa-yang Jan 24, 2022
4e43719
node-filtering (#1424)
abby-cyber Jan 25, 2022
85873c5
dashboard ent config_file update (#1426)
abby-cyber Jan 25, 2022
a30e65a
Update 1.insert-edge.md
whitewum Jan 25, 2022
67ace76
Update 2.data-model.md
whitewum Jan 25, 2022
f398351
Update 2.graph-modeling.md
whitewum Jan 25, 2022
3253461
dashboard-ent-custom-installation path (#1430)
abby-cyber Jan 26, 2022
64f1ed4
update-picture
foesa-yang Jan 26, 2022
627327e
Update 1.what-is-dashboard.md
abby-cyber Jan 26, 2022
a02c2a1
[WIP] explorer 220 graph-exploration (#1429)
abby-cyber Jan 27, 2022
e9f6075
explorer 220 - canvas (#1433)
abby-cyber Jan 27, 2022
0cd6a80
Update 2.deploy-dashboard.md
abby-cyber Jan 27, 2022
ee11fb8
Update 2.deploy-dashboard.md
abby-cyber Jan 27, 2022
c6e13fe
Update upgrade docs (#1427)
randomJoe211 Jan 27, 2022
d5fe247
delete zone (#1434)
cooper-lzy Jan 27, 2022
19e64db
manage storage hosts (#1437)
cooper-lzy Jan 28, 2022
556e800
Update manage-storage-host.md
cooper-lzy Jan 28, 2022
088431f
Add faq for job id issue (#1438)
randomJoe211 Jan 28, 2022
af31740
Remove zone (#1439)
randomJoe211 Jan 28, 2022
cce3c2e
Remove zone (#1440)
randomJoe211 Jan 28, 2022
033fb96
Exchange support PostgreSQL data source (#1441)
randomJoe211 Jan 28, 2022
d32e8bd
[WIP] explorer220-updates (#1435)
abby-cyber Jan 29, 2022
543a42e
Update canvas-overview.md
abby-cyber Feb 7, 2022
964169b
Update visualization-mode.md
abby-cyber Feb 7, 2022
92f6614
Update visualization-mode.md
abby-cyber Feb 7, 2022
3682202
show hosts (#1442)
cooper-lzy Feb 8, 2022
605af38
Update learning-path.md
whitewum Feb 8, 2022
59b6873
Update 2.data-model.md
cooper-lzy Feb 8, 2022
691a1c4
Update compaction.md
whitewum Feb 8, 2022
3046a52
Update compaction.md
whitewum Feb 8, 2022
3c77972
Update compaction.md
whitewum Feb 8, 2022
7373fe5
Update 3.system-design.md
whitewum Feb 8, 2022
883e286
Update 3.system-design.md
whitewum Feb 8, 2022
cfc65ed
Update st-ug-release-note.md
whitewum Feb 8, 2022
9552814
Update nebula-bench.md
whitewum Feb 8, 2022
ce95a09
Update how-to-contribute.md
whitewum Feb 8, 2022
af91deb
Update how-to-contribute.md
whitewum Feb 8, 2022
3c03933
Update 6.eco-tool-version.md
whitewum Feb 8, 2022
658fa1f
Update 6.eco-tool-version.md
whitewum Feb 8, 2022
7f1c3e0
Update 0.FAQ.md
whitewum Feb 8, 2022
dec6e06
Create 0.FAQ.md (#1443)
whitewum Feb 8, 2022
6e521b0
Update use-importer.md
whitewum Feb 8, 2022
dab1f33
Update mkdocs.yml
whitewum Feb 8, 2022
0f3cbee
Update 6.eco-tool-version.md
whitewum Feb 8, 2022
8e6f0ae
update clients (#1444)
cooper-lzy Feb 8, 2022
11061d5
Update 3.system-design.md
whitewum Feb 8, 2022
556a31f
Update ex-ug-deploy.md (#1445)
abby-cyber Feb 8, 2022
dad9470
Update ex-ug-graph-exploration.md
abby-cyber Feb 8, 2022
7f8bce1
update docs (#1446)
cooper-lzy Feb 8, 2022
6d53bfe
Update ex-ug-graph-exploration.md
abby-cyber Feb 8, 2022
ff599e3
Update 6.kill-query.md (#1448)
cooper-lzy Feb 8, 2022
e78e864
Update 2.deploy-dashboard.md
cooper-lzy Feb 8, 2022
55fe5c0
Update ex-ug-shortcuts.md
abby-cyber Feb 8, 2022
05c4261
Update ex-ug-graph-exploration.md (#1449)
abby-cyber Feb 9, 2022
cf90de2
Update st-ug-deploy-by-helm.md (#1450)
foesa-yang Feb 9, 2022
cae995f
Update explorer-console.md (#1451)
abby-cyber Feb 9, 2022
0f17551
Update source_connect-to-nebula-graph.md
cooper-lzy Feb 9, 2022
8a403f5
Update 5.nebula-python-client.md (#1452)
HarrisChu Feb 9, 2022
c54d8ba
update
foesa-yang Feb 9, 2022
a60f48b
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Feb 9, 2022
fcdaca2
Update 6.show-hosts.md
cooper-lzy Feb 10, 2022
9684b76
add gifs for dashboard 110 (#1453)
abby-cyber Feb 10, 2022
368a5ce
Update 6.pricing.md
foesa-yang Feb 10, 2022
9d5a7b0
Update 1.what-is-br.md
foesa-yang Feb 10, 2022
3070a8c
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Feb 10, 2022
288c2de
Update 4.storage-service.md
whitewum Feb 10, 2022
89ae2d2
Update 2.deploy-dashboard.md (#1455)
abby-cyber Feb 10, 2022
d90ba41
Update 1.what-is-nebula-graph.md
abby-cyber Feb 10, 2022
303c8d6
Update mkdocs.yml (#1456)
abby-cyber Feb 10, 2022
c2852d3
Update 2.deploy-dashboard.md (#1457)
abby-cyber Feb 10, 2022
c5460ba
Update 2.deploy-dashboard.md
abby-cyber Feb 11, 2022
b413a17
Dashboard community deploy&connect updates (#1460)
abby-cyber Feb 11, 2022
c76cd7a
update release notes (#1459)
cooper-lzy Feb 11, 2022
53752ed
Update 2.deploy-dashboard.md
abby-cyber Feb 11, 2022
7487c7a
Update releasenote.md
cooper-lzy Feb 11, 2022
8c0644e
Update releasenote.md
cooper-lzy Feb 11, 2022
dbf8d22
Update learning-path.md
QingZ11 Feb 11, 2022
1b6d76e
Update deploy.yaml
cooper-lzy Feb 14, 2022
9fada1d
Update visualization-mode.md (#1463)
abby-cyber Feb 14, 2022
7389ee9
Update ex-ug-compile.md
whitewum Feb 14, 2022
faa40c9
Update releasenote.md
whitewum Feb 14, 2022
73cfaab
Update releasenote.md
whitewum Feb 14, 2022
017b677
update br 0211 (#1461)
foesa-yang Feb 14, 2022
ad62498
Update 1.configurations.md
whitewum Feb 14, 2022
274518b
Update mkdocs.yml
cooper-lzy Feb 14, 2022
f797692
Update mkdocs.yml
cooper-lzy Feb 14, 2022
ee17219
Update upgrade-nebula-graph-to-latest.md
whitewum Feb 14, 2022
46273b3
Update upgrade-nebula-graph-to-latest.md
whitewum Feb 14, 2022
1d35185
Update upgrade-nebula-graph-to-latest.md
whitewum Feb 14, 2022
50dfccb
fixed some issues (#1467)
cooper-lzy Feb 14, 2022
f870ea7
Update releasenote.md
cooper-lzy Feb 14, 2022
898ef77
Update 2.deploy-connect-dashboard-ent.md (#1468)
abby-cyber Feb 14, 2022
a799d5b
Update 4.describe-space.md
cooper-lzy Feb 14, 2022
ee254ad
Update upgrade-nebula-graph-to-latest.md
cooper-lzy Feb 14, 2022
c4ef0fa
Update releasenote.md
cooper-lzy Feb 14, 2022
a8d924c
Create releasenote.md
cooper-lzy Feb 14, 2022
8d215a9
Update releasenote.md
cooper-lzy Feb 14, 2022
3696e3c
Update mkdocs.yml
cooper-lzy Feb 14, 2022
e862459
update-br
foesa-yang Feb 14, 2022
bb729fd
Merge branch 'v3.0.0' of https://github.com/vesoft-inc/nebula-docs-cn…
foesa-yang Feb 14, 2022
38255f6
Update 2.deploy-connect-dashboard-ent.md
abby-cyber Feb 14, 2022
761b327
update branch of client (#1469)
cooper-lzy Feb 15, 2022
f5d5d19
Update mkdocs.yml
whitewum Feb 15, 2022
9b61f66
Update 4.nebula-java-client.md
cooper-lzy Feb 15, 2022
af637f8
update compatibility (#1470)
cooper-lzy Feb 15, 2022
8a9665f
Update 3.br-backup-data.md
cooper-lzy Feb 15, 2022
935f16b
Update 3.br-backup-data.md
cooper-lzy Feb 15, 2022
c091f60
Update nebula-plato.md
cooper-lzy Feb 15, 2022
7b8e739
Update 3.br-backup-data.md
cooper-lzy Feb 15, 2022
5d6086b
Update nebula-plato.md
cooper-lzy Feb 15, 2022
57eb18a
Update st-ug-deploy.md
hetao92 Feb 15, 2022
b475bce
Update 3.br-backup-data.md
cooper-lzy Feb 15, 2022
84d2b94
Update st-ug-deploy.md
hetao92 Feb 15, 2022
9c4fb6a
Update 4.br-restore-data.md
foesa-yang Feb 15, 2022
422c690
Update 4.br-restore-data.md
foesa-yang Feb 15, 2022
b403465
Update 3.br-backup-data.md
cooper-lzy Feb 15, 2022
c2abbcd
Update st-ug-release-note.md
foesa-yang Feb 15, 2022
e15bb24
Update ex-ug-limitations.md
cooper-lzy Feb 15, 2022
faffe74
Update mkdocs.yml
cooper-lzy Feb 15, 2022
5b5e41b
Update use-importer.md
cooper-lzy Feb 15, 2022
916e38e
Update use-importer.md
cooper-lzy Feb 15, 2022
5abe2e1
Update nebula-algorithm.md
cooper-lzy Feb 15, 2022
6bf8123
Update config-with-header.md
cooper-lzy Feb 15, 2022
e43ed6c
Update config-without-header.md
cooper-lzy Feb 15, 2022
9cf8470
Update releasenote.md
cooper-lzy Feb 16, 2022
1f8c3c2
Update st-ug-what-is-graph-studio.md
foesa-yang Feb 16, 2022
e9afb00
Update nebula-algorithm.md
cooper-lzy Feb 16, 2022
b06ec02
Update nebula-spark-connector.md (#1473)
cooper-lzy Feb 16, 2022
b19d4df
Update ex-ug-import-from-mysql.md
cooper-lzy Feb 16, 2022
630b4b3
update exchange 3.0.0 (#1474)
cooper-lzy Feb 16, 2022
451677b
[WIP]change plato name (#1472)
cooper-lzy Feb 16, 2022
39024be
Update nebula-analytics.md
cooper-lzy Feb 16, 2022
a225458
Update 6.eco-tool-version.md
whitewum Feb 16, 2022
ad9a50b
Update 3.system-design.md
whitewum Feb 16, 2022
8477706
Update nebula-analytics.md
cooper-lzy Feb 16, 2022
59be8fb
Update releasenote.md
cooper-lzy Feb 16, 2022
48bec9f
Update releasenote.md
cooper-lzy Feb 16, 2022
b739879
add br
foesa-yang Feb 16, 2022
75d0611
Update releasenote.md
cooper-lzy Feb 16, 2022
021c9cd
Update releasenote.md
cooper-lzy Feb 16, 2022
3d9af37
Update releasenote.md
cooper-lzy Feb 16, 2022
89645ce
Update releasenote.md
cooper-lzy Feb 16, 2022
f400827
Update learning-path.md
cooper-lzy Feb 16, 2022
4cbbd56
Update learning-path.md
cooper-lzy Feb 16, 2022
d7d343d
Update learning-path.md
cooper-lzy Feb 16, 2022
9a76a75
Update learning-path.md (#1476)
abby-cyber Feb 16, 2022
cefeba2
Update nebula-console.md
cooper-lzy Feb 16, 2022
cbfe005
Update nebula-console.md (#1477)
cooper-lzy Feb 17, 2022
be98bf9
Update studio 3.2.1 (#1478)
foesa-yang Feb 17, 2022
32ecbbc
Update 6.eco-tool-version.md (#1479)
abby-cyber Feb 17, 2022
a6459ce
Update logo.css (#1480)
abby-cyber Feb 17, 2022
8fd10fe
Update 1.configurations.md (#1481)
abby-cyber Feb 17, 2022
2e8d705
Fix link and add cloud (#1482)
foesa-yang Feb 17, 2022
c29f5b3
Update nebula-cloud.md
foesa-yang Feb 17, 2022
7ae63fb
Update 6.eco-tool-version.md
cooper-lzy Feb 17, 2022
9f37359
Merge branch 'v3.0.0' into merge-3.0.0-to-master
cooper-lzy Feb 18, 2022
54feb60
update
cooper-lzy Feb 18, 2022
75c8c07
update
cooper-lzy Feb 18, 2022
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
2 changes: 1 addition & 1 deletion docs-2.0/1.introduction/1.what-is-nebula-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Nebula Graph 采用 shared-nothing 架构,支持在不停止数据库服务的

### 易开发

Nebula Graph 提供 Java、Python、C++和 Go 等流行编程语言的客户端,更多客户端仍在开发中。详情请参见 [Nebula Graph clients](../14.client/1.nebula-client.md)。
Nebula Graph 提供 Java、Python、C++ 和 Go 等流行编程语言的客户端,更多客户端仍在开发中。详情请参见 [Nebula Graph clients](../14.client/1.nebula-client.md)。

### 高可靠访问控制

Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/1.introduction/2.1.path.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@

用户也可以观看视频了解路径的相关概念。

[Nebula Algorithm](https://www.bilibili.com/video/BV1Uf4y1t72L)(03 分 09 秒)
[Path](https://www.bilibili.com/video/BV1Uf4y1t72L)(03 分 09 秒)

<iframe src="//player.bilibili.com/player.html?aid=291311326&bvid=BV1Uf4y1t72L&cid=361000311&page=1&high_quality=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="720px" height="480px"> </iframe>
10 changes: 8 additions & 2 deletions docs-2.0/1.introduction/2.data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ Nebula Graph 数据模型使用 6 种基本的数据模型:

- 两点之间可以有多条边。
- 边是有方向的,不存在无向边。
- 四元组 `<起点 VID、Edge type、边排序值 (Rank)、终点 VID>` 用于唯一标识一条边。边没有 EID。
- 四元组 `<起点 VID、Edge type、边排序值 (rank)、终点 VID>` 用于唯一标识一条边。边没有 EID。
- 一条边有且仅有一个 Edge type。
- 一条边有且仅有一个 rank。其为 int64,默认为 0。
- 一条边有且仅有一个 rank,类型为 int64,默认值为 0。

!!! 关于 rank

rank 可以用来区分 Edge type、起始点、目的点都相同的边。该值完全由用户自己指定。
读取时必须自行取得全部的 rank 值后排序过滤和拼接。
不支持诸如 `next(), pre(), head(), tail(), max(), min(), lessThan(), moreThan()` 等函数功能,也不能通过创建索引加速访问或者条件过滤。

- 标签(Tag)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Storage 服务是由 nebula-storaged 进程提供的,用户可以根据场景

- Storage interface 层

Storage 服务的最上层,定义了一系列和图相关的 API。API 请求会在这一层被翻译成一组针对[分片](#数据分片)的 KV 操作,例如:
Storage 服务的最上层,定义了一系列和图相关的 API。API 请求会在这一层被翻译成一组针对[分片](#_4)的 KV 操作,例如:

- `getNeighbors`:查询一批点的出边或者入边,返回边以及对应的属性,并且支持条件过滤。

Expand Down Expand Up @@ -70,6 +70,7 @@ Nebula Graph 使用自行开发的 KVStore,而不是其他开源 KVStore,原

- 支持多个图空间,不同图空间相互隔离,每个图空间可以设置自己的分片数和副本数。

<!--
## 数据存储格式

图存储的主要数据是点和边,Nebula Graph 将点和边的信息存储为 key,同时将点和边的属性信息存储在 value 中,以便更高效地使用属性过滤。
Expand Down Expand Up @@ -109,7 +110,7 @@ Nebula Graph 使用自行开发的 KVStore,而不是其他开源 KVStore,原
- 2.0 中取消了 1.x 中的保留字段`Timestamp`。
- 2.0 中边数据新增字段`PlaceHolder`。
- 2.0 中修改了索引的格式,以便支持范围查询。

-->
### 属性说明

Nebula Graph 使用强类型 Schema。
Expand All @@ -122,6 +123,7 @@ Nebula Graph 使用强类型 Schema。

![data partitioning](https://www-cdn.nebula-graph.com.cn/nebula-blog/DataModel02.png)

<!--
### 切边与存储放大

Nebula Graph 中逻辑上的一条边对应着硬盘上的两个键值对(key-value pair),在边的数量和属性较多时,存储放大现象较明显。边的存储方式如下图所示。
Expand All @@ -143,7 +145,7 @@ EdgeA_Out 和 EdgeA_In 以方向相反的两条边的形式存在于存储层,
如 EdgeA_Out 和 EdgeA_In 一样,Nebula Graph 冗余了存储每条边的信息,导致存储边所需的实际空间翻倍。因为边对应的 Key 占用的硬盘空间较小,但 Value 占用的空间与属性值的长度和数量成正比,所以,当边的属性值较大或数量较多时候,硬盘空间占用量会比较大。

如果对边进行操作,为了保证两个键值对的最终一致性,可以开启 [TOSS 功能](../../5.configurations-and-logs/1.configurations/3.graph-config.md),开启后,会先在正向边所在的分片进行操作,然后在反向边所在分片进行操作,最后返回结果。

-->
### 分片算法

分片策略采用**静态 Hash **的方式,即对点 VID 进行取模操作,同一个点的所有 Tag、出边和入边信息都会存储到同一个分片,这种方式极大地提升了查询效率。
Expand Down Expand Up @@ -266,10 +268,12 @@ Storage 服务基于 Raft 协议实现的分布式架构,与 HDFS 的分布式

总而言之,Storage 服务更加轻量级,精简了一些功能,架构没有 HDFS 复杂,可以有效提高小块存储的读写性能。

<!--
## 视频

用户也可以通过视频全方位了解 Nebula Graph 的存储设计。

- [nMeetup·上海 | Storage in Nebula Graph 2.0](https://www.bilibili.com/video/BV16b4y1Q77k)(24 分 29 秒)

<iframe src="//player.bilibili.com/player.html?aid=629800372&bvid=BV16b4y1Q77k&cid=317031300&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="720px" height="480px"> </iframe>
-->
2 changes: 1 addition & 1 deletion docs-2.0/1.introduction/3.vid.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

## VID 使用建议

- Nebula Graph 1.x 只支持 VID 类型为`INT64`,2.x 支持`INT64`和`FIXED_STRING(<N>)`。在`CREATE SPACE`中通过参数`vid_type`可以指定 VID 类型。
- Nebula Graph 1.x 只支持 VID 类型为`INT64`,2.x 开始支持`INT64`和`FIXED_STRING(<N>)`。在`CREATE SPACE`中通过参数`vid_type`可以指定 VID 类型。

- 可以使用`id()`函数,指定或引用该点的 VID;

Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/14.client/1.nebula-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Nebula Graph 提供多种类型客户端,便于用户连接、管理 Nebula Gr

!!! note

除 Nebula Java 之外,其他客户端暂不支持线程安全(thread-safe)。
客户端暂不支持线程安全(thread-safe)。
30 changes: 7 additions & 23 deletions docs-2.0/14.client/3.nebula-cpp-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
|Nebula Graph 版本|Nebula CPP 版本|
|:---|:---|
|{{ nebula.release }}|{{cpp.release}}|
|2.0.1|2.0.0|
|2.0.0|2.0.0|
|2.6.x|2.5.0|
|2.5.x|2.5.0|
|2.0.x|2.0.0|

## 安装 Nebula CPP

Expand All @@ -23,7 +24,7 @@
- (推荐)如果需要安装指定版本的 Nebula CPP,请使用选项`--branch`指定分支。例如安装 v{{ cpp.release }}发布版本,请执行如下命令:

```bash
$ git clone --branch v{{ cpp.release }} https://github.com/vesoft-inc/nebula-cpp.git
$ git clone --branch {{cpp.branch}} https://github.com/vesoft-inc/nebula-cpp.git
```

- 如果需要安装日常开发版本,请执行如下命令下载`master`分支的源码:
Expand Down Expand Up @@ -82,7 +83,7 @@

将 CPP 文件编译为可执行文件即可。接下来以`SessionExample.cpp`为例,介绍如何操作。

1. 使用[示例代码](https://github.com/vesoft-inc/nebula-cpp/blob/master/examples/SessionExample.cpp)创建`SessionExample.cpp`文件。
1. 使用[示例代码](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.branch}}/examples/SessionExample.cpp)创建`SessionExample.cpp`文件。

2. 编译文件,命令如下:

Expand All @@ -102,22 +103,5 @@

### 核心代码

详细示例请参见 [SessionExample](https://github.com/vesoft-inc/nebula-cpp/blob/master/examples/SessionExample.cpp)。

```C++
nebula::init(&argc, &argv);
auto address = "192.168.xx.1:9669";
nebula::ConnectionPool pool;
pool.init({address}, nebula::Config{});
auto session = pool.getSession("root", "nebula");

auto result = session.execute("SHOW HOSTS");
std::cout << *result.data;

std::atomic_bool complete{false};
session.asyncExecute("SHOW HOSTS", [&complete](nebula::ExecutionResponse&& cbResult) {
std::cout << *cbResult.data;
complete.store(true);
});
session.release();
```
详细示例请参见 [SessionExample](https://github.com/vesoft-inc/nebula-cpp/blob/{{cpp.branch}}/examples/SessionExample.cpp)。

58 changes: 7 additions & 51 deletions docs-2.0/14.client/4.nebula-java-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
|Nebula Graph 版本|Nebula Java 版本|
|:---|:---|
|{{ nebula.release }}|{{java.release}}|
|2.0.1|2.0.0|
|2.0.0|2.0.0|
|2.6.x|2.6.1|
|2.0.x|2.0.0|
|2.0.0-rc1|2.0.0-rc1|

## 下载 Nebula Java

- (推荐)如果需要使用指定版本的 Nebula Java,请使用选项`--branch`指定分支。例如使用 v{{ java.release }}发布版本,请执行如下命令:

```bash
$ git clone --branch v{{ java.release }} https://github.com/vesoft-inc/nebula-java.git
$ git clone --branch {{java.branch}} https://github.com/vesoft-inc/nebula-java.git
```

- 如果需要安装日常开发版本,请执行如下命令下载`master`分支的源码:
Expand All @@ -39,13 +39,13 @@

!!! note

`2.0.0-SNAPSHOT`为日常研发版本,可能存在未知问题,建议使用 release 版本号替换`2.0.0-SNAPSHOT`。
`3.0.0-SNAPSHOT`为日常研发版本,可能存在未知问题,建议使用 release 版本号替换`3.0.0-SNAPSHOT`。

```bash
<dependency>
<groupId>com.vesoft</groupId>
<artifactId>client</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
</dependency>
```

Expand All @@ -64,49 +64,5 @@

### 核心代码

详细示例请参见 [GraphClientExample](https://github.com/vesoft-inc/nebula-java/blob/master/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java)。

```java
NebulaPool pool = new NebulaPool();
Session session = null;
try {
NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig();
nebulaPoolConfig.setMaxConnSize(100);
List<HostAddress> addresses = Arrays.asList(new HostAddress("192.168.xx.1", 9669),
new HostAddress("192.168.xx.2", 9670));
pool.init(addresses, nebulaPoolConfig);
session = pool.getSession("root", "nebula", false);

//create space
String space = "test";
String createSpace = "CREATE SPACE IF NOT EXISTS " + space + " (partition_num=15, replica_factor=1, vid_type=fixed_string(30)); ";
ResultSet resp = session.execute(createSpace);

//create schema
String createSchema = "USE " + space + "; CREATE TAG IF NOT EXISTS person(name string, age int);"
+ "CREATE EDGE IF NOT EXISTS like(likeness double)";
ResultSet resp = session.execute(createSchema);

//insert vertex
String insertVertexes = "INSERT VERTEX person(name, age) VALUES " + "'Bob':('Bob', 10), "
+ "'Lily':('Lily', 9), " + "'Tom':('Tom', 10), " + "'Jerry':('Jerry', 13), "
+ "'John':('John', 11);";
ResultSet resp = session.execute(insertVertexes);

// inert edge
String insertEdges = "INSERT EDGE like(likeness) VALUES " + "'Bob'->'Lily':(80.0), "
+ "'Bob'->'Tom':(70.0), " + "'Lily'->'Jerry':(84.0), " + "'Tom'->'Jerry':(68.3), "
+ "'Bob'->'John':(97.2);";
ResultSet resp = session.execute(insertEdges);

// query
String query = "GO FROM \"Bob\" OVER like " + "YIELD properties($$).name, properties($$).age, properties(edge).likeness";
ResultSet resp = session.execute(query);
printResult(resp);
}finally {
if (session != null) {
session.release();
}
pool.close();
}
```
详细示例请参见 [GraphClientExample](https://github.com/vesoft-inc/nebula-java/blob/{{java.branch}}/examples/src/main/java/com/vesoft/nebula/examples/GraphClientExample.java)。

73 changes: 6 additions & 67 deletions docs-2.0/14.client/5.nebula-python-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@

## 前提条件

已安装 Python,版本为 3.5 及以上。
已安装 Python,版本为 3.6 及以上。

## 版本对照表

|Nebula Graph 版本|Nebula Python 版本|
|:---|:---|
|{{ nebula.release }}|{{python.release}}|
|2.0.1|2.0.0|
|2.0.0|2.0.0|
|2.6.x|2.6.0|
|2.0.x|2.0.0|
|2.0.0-rc1|2.0.0rc1|

## 安装 Nebula Python

### pip 安装

```bash
$ pip install nebula2-python==<version>
$ pip install nebula3-python==<version>
```

### 克隆源码安装
Expand All @@ -30,7 +30,7 @@ $ pip install nebula2-python==<version>
- (推荐)如果需要安装指定版本的 Nebula Python,请使用选项`--branch`指定分支。例如安装 v{{ python.release }}发布版本,请执行如下命令:

```bash
$ git clone --branch v{{ python.release }} https://github.com/vesoft-inc/nebula-python.git
$ git clone --branch {{python.branch}} https://github.com/vesoft-inc/nebula-python.git
```

- 如果需要安装日常开发版本,请执行如下命令下载`master`分支的源码:
Expand All @@ -53,66 +53,5 @@ $ pip install nebula2-python==<version>

## 核心代码

详细示例请参见 [Example](https://github.com/vesoft-inc/nebula-python/tree/master/example)。
详细示例请参见 [Example](https://github.com/vesoft-inc/nebula-python/tree/{{python.branch}}/example)。

### 连接 Graph 服务

```python
# 定义配置
config = Config()
config.max_connection_pool_size = 10
# 初始化连接池
connection_pool = ConnectionPool()
# 如果给定的服务器正常,则返回 true,否则返回 false。
ok = connection_pool.init([('192.168.xx.1', 9669)], config)

# 方法 1:控制连接自行释放。
# 从连接池中获取会话
session = connection_pool.get_session('root', 'nebula')

# 选择图空间
session.execute('USE basketballplayer')

# 执行查看 TAG 命令
result = session.execute('SHOW TAGS')
print(result)

# 释放会话
session.release()

# 方法 2:使用 session_context,会话将被自动释放。
with connection_pool.session_context('root', 'nebula') as session:
session.execute('USE basketballplayer;')
result = session.execute('SHOW TAGS;')
print(result)

# 关闭连接池
connection_pool.close()
```

### 连接 Storage 服务

```python
# 设置所有 Meta 服务地址
meta_cache = MetaCache([('192.168.xx.1', 9559),
('192.168.xx.2', 9559),
('192.168.xx.3', 9559)],
50000)
graph_storage_client = GraphStorageClient(meta_cache)

resp = graph_storage_client.scan_vertex(
space_name='ScanSpace',
tag_name='person')
while resp.has_next():
result = resp.next()
for vertex_data in result:
print(vertex_data)

resp = graph_storage_client.scan_edge(
space_name='ScanSpace',
edge_name='friend')
while resp.has_next():
result = resp.next()
for edge_data in result:
print(edge_data)
```
Loading