Skip to content

Commit

Permalink
[apache#4077] improvement(docs): Fixed an incorrect Java example
Browse files Browse the repository at this point in the history
  • Loading branch information
rqyin committed Jul 4, 2024
1 parent e17a910 commit dc2f3ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/manage-metalake-using-gravitino.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ GravitinoAdminClient gravitinoAdminClient = GravitinoAdminClient
.builder("http://localhost:8090")
.build();

GravitinoMetaLake newMetalake = gravitinoAdminClient.createMetalake(
GravitinoMetalake newMetalake = gravitinoAdminClient.createMetalake(
NameIdentifier.of("metalake"),
"This is a new metalake",
new HashMap<>());
Expand Down Expand Up @@ -79,7 +79,7 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \

```java
// ...
GravitinoMetaLake loaded = gravitinoAdminClient.loadMetalake(
GravitinoMetalake loaded = gravitinoAdminClient.loadMetalake(
NameIdentifier.of("metalake"));
// ...
```
Expand Down Expand Up @@ -123,7 +123,7 @@ curl -X PUT -H "Accept: application/vnd.gravitino.v1+json" \

```java
// ...
GravitinoMetaLake renamed = gravitinoAdminClient.alterMetalake(
GravitinoMetalake renamed = gravitinoAdminClient.alterMetalake(
NameIdentifier.of("new_metalake"),
MetalakeChange.rename("new_metalake_renamed")
);
Expand Down Expand Up @@ -213,7 +213,7 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \

```java
// ...
GravitinoMetaLake[] allMetalakes = gravitinoAdminClient.listMetalakes();
GravitinoMetalake[] allMetalakes = gravitinoAdminClient.listMetalakes();
// ...
```

Expand Down
2 changes: 1 addition & 1 deletion docs/manage-relational-metadata-using-gravitino.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ http://localhost:8090/api/metalakes/metalake/catalogs?details=true
```java
// ...
// Assuming you have just created a metalake named `metalake`
Catalog[] catalogsInfos = gravitinoMetaLake.listCatalogsInfo(Namespace.ofCatalog("metalake"));
Catalog[] catalogsInfos = gravitinoMetalake.listCatalogsInfo(Namespace.ofCatalog("metalake"));
// ...
```

Expand Down

0 comments on commit dc2f3ed

Please sign in to comment.