Skip to content

Commit

Permalink
[#4077] improvement(docs): Fixed an incorrect Java example (#4079)
Browse files Browse the repository at this point in the history
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
   Examples:
     - "[#123] feat(operator): support xxx"
     - "[#233] fix: check null before access result in xxx"
     - "[MINOR] refactor: fix typo in variable name"
     - "[MINOR] docs: fix typo in README"
     - "[#255] test: fix flaky test NameOfTheTest"
   Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->

### What changes were proposed in this pull request?

Fixed an incorrect Java example.

### Why are the changes needed?

Fix: #4077 

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

No testing required

Co-authored-by: rqyin <[email protected]>
  • Loading branch information
JinsYin and rqyin authored Jul 4, 2024
1 parent e17a910 commit e61422e
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 e61422e

Please sign in to comment.