From dc2f3ed281557fb0f45d103bd5b1c7a81bdeb845 Mon Sep 17 00:00:00 2001 From: rqyin Date: Thu, 4 Jul 2024 14:46:23 +0800 Subject: [PATCH] [#4077] improvement(docs): Fixed an incorrect Java example --- docs/manage-metalake-using-gravitino.md | 8 ++++---- docs/manage-relational-metadata-using-gravitino.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/manage-metalake-using-gravitino.md b/docs/manage-metalake-using-gravitino.md index ff4e76a029a..b4510cfc2c8 100644 --- a/docs/manage-metalake-using-gravitino.md +++ b/docs/manage-metalake-using-gravitino.md @@ -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<>()); @@ -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")); // ... ``` @@ -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") ); @@ -213,7 +213,7 @@ curl -X GET -H "Accept: application/vnd.gravitino.v1+json" \ ```java // ... -GravitinoMetaLake[] allMetalakes = gravitinoAdminClient.listMetalakes(); +GravitinoMetalake[] allMetalakes = gravitinoAdminClient.listMetalakes(); // ... ``` diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.md index 47003de481e..372d2e40ca8 100644 --- a/docs/manage-relational-metadata-using-gravitino.md +++ b/docs/manage-relational-metadata-using-gravitino.md @@ -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")); // ... ```