Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit d412916

Browse files
edited according to review
1 parent 86ab30f commit d412916

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

content/cn/docs/clients/hugegraph-client.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,16 @@ spaceManager.createGraphSpace(graphSpace);
482482
| 查询 | listGraphSpace() | 获取所有 GraphSpace 列表 |
483483
| | getGraphSpace(String name) | 获取指定 GraphSpace |
484484
| | space.getName() | 获取 GraphSpace 名称 |
485+
| | space.getDescription() | 获取 GraphSpace 描述 |
486+
| | space.getGraphNumber() | 获取 GraphSpace 下图数量 |
485487
| 更新 | space.setDescription(String description) | 修改 GraphSpace 描述信息 |
486488
| | space.setMaxGraphNumber(int maxNumber) | 设置 GraphSpace 最大图数量 |
487-
| | space.setMaxRoleNumber(int maxRoleNumber) | 设置 GraphSpace 最大图数量 |
489+
| | space.setMaxRoleNumber(int maxRoleNumber) | 设置 GraphSpace 最大角色数量 |
488490
| | updateGraphSpace(String name, GraphSpace space) | 更新 GraphSpace 配置 |
489491
| 删除 | removeGraphSpace(String name) | 删除指定 GraphSpace |
492+
| | removeGraphSpace(String name, boolean force) | 强制删除 GraphSpace (包括所有图数据) |
490493

491494

492495
### 5 简单示例
493496

494-
简单示例见[HugeGraph-Client](/cn/docs/quickstart/client/hugegraph-client)
497+
简单示例见[HugeGraph-Client](/cn/docs/quickstart/client/hugegraph-client)

content/cn/docs/quickstart/client/hugegraph-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ public class SingleExample {
7878

7979
public static void main(String[] args) throws IOException {
8080
// If connect failed will throw a exception.
81-
HugeClient hugeClient = HugeClient.builder("http://127.0.0.1:8080",
81+
HugeClient hugeClient = HugeClient.builder("http://localhost:8080",
8282
"DEFAULT",
8383
"hugegraph")
84+
.configUser("admin", "admin")
8485
.build();
8586

8687
SchemaManager schema = hugeClient.schema();
@@ -357,4 +358,3 @@ public class BatchExample {
357358
#### 4.5 详细 API 说明
358359

359360
示例说明见[HugeGraph-Client 基本 API 介绍](/cn/docs/clients/hugegraph-client)
360-

content/en/docs/quickstart/client/hugegraph-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ import org.apache.hugegraph.structure.gremlin.ResultSet;
7373
public class SingleExample {
7474

7575
public static void main(String[] args) throws IOException {
76-
HugeClient hugeClient = HugeClient.builder("http://127.0.0.1:8080",
76+
// If connect failed will throw a exception.
77+
HugeClient hugeClient = HugeClient.builder("http://localhost:8080",
7778
"DEFAULT",
7879
"hugegraph")
7980
.configUser("admin", "admin")
@@ -351,4 +352,3 @@ Before running Example, you need to start the Server. For the startup process, s
351352
#### 4.5 More Information About Client-API
352353

353354
See[Introduce basic API of HugeGraph-Client](/docs/clients/hugegraph-client).
354-

0 commit comments

Comments
 (0)