Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#4437] improvement(docs): Upgrade Gravitino Java doc version from 0.5.1 to 0.6.0. (#4438)

Qi Yub795ea2a5e10
diff --git a/dev/release/update-java-doc-version.sh b/dev/release/update-java-doc-version.sh
new file mode 100755
index 0000000000..71f4bbc911
--- /dev/null
+++ b/dev/release/update-java-doc-version.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+if [[ $# -ne 1 ]]; then
+ echo "Usage: $0 <new_version>"
+ exit 1
+fi
+
+NEW_VERSION=$1
+cd "$(cd "$(dirname "$0")" && pwd)/../docs"
+CURRENT_VERSION=`cat index.md| grep pathname:///docs | head -n 1 | awk -F '///docs' '{print $2}' | awk -F '/' '{print $2}'`
+
+if [[ "${NEW_VERSION}" == "${CURRENT_VERSION}" ]]; then
+ echo "The new version is the same as the current version."
+ exit 1
+fi
+
+# Detect the operating system
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ # macOS
+ find "$(pwd)" -name "*.md" | xargs sed -i '' "s|/docs/${CURRENT_VERSION}/api|/docs/${NEW_VERSION}/api|g"
+elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
+ # Linux
+ find "$(pwd)" -name "*.md" | xargs sed -i "s|/docs/${CURRENT_VERSION}/api|/docs/${NEW_VERSION}/api|g"
+else
+ echo "Unsupported OS"
+ exit 1
+fi
+
+echo "Update the version from ${CURRENT_VERSION} to ${NEW_VERSION} successfully."
\ No newline at end of file
diff --git a/docs/index.md b/docs/index.md
index fb73ca18f1..748767bf7c 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -59,7 +59,7 @@ REST API and the Java SDK. You can use either to manage metadata. See
Also, you can find the complete REST API definition in
[Gravitino Open API](./api/rest/gravitino-rest-api), and the
-Java SDK definition in [Gravitino Javadoc](pathname:///docs/0.5.1/api/java/index.html).
+Java SDK definition in [Gravitino Javadoc](pathname:///docs/0.6.0/api/java/index.html).
Gravitino provides a web UI to manage the metadata. Visit the web UI in the browser via `http://<ip-address>:8090`. See [Gravitino web UI](./webui.md) for details.
@@ -153,7 +153,7 @@ Gravitino provides several ways to configure and manage the Gravitino server. Se
* [Gravitino Open API](./api/rest/gravitino-rest-api): provides the complete Open API definition of
Gravitino.
-* [Gravitino Javadoc](pathname:///docs/0.5.1/api/java/index.html): provides the Javadoc for the Gravitino API.
+* [Gravitino Javadoc](pathname:///docs/0.6.0/api/java/index.html): provides the Javadoc for the Gravitino API.
### Development guides
diff --git a/docs/manage-relational-metadata-using-gravitino.md b/docs/manage-relational-metadata-using-gravitino.md
index 8e06fa142d..6f6b6bcff7 100644
--- a/docs/manage-relational-metadata-using-gravitino.md
+++ b/docs/manage-relational-metadata-using-gravitino.md
@@ -734,7 +734,7 @@ The following types that Gravitino supports:
| Union | `Types.UnionType.of([type1, type2, ...])` | `{"type": "union", "types": [type JSON, ...]}` | Union type, indicates a union of types |
| UUID | `Types.UUIDType.get()` | `uuid` | UUID type, indicates a universally unique identifier |
-The related java doc is [here](pathname:///docs/0.5.1/api/java/org/apache/gravitino/rel/types/Type.html).
+The related java doc is [here](pathname:///docs/0.6.0/api/java/org/apache/gravitino/rel/types/Type.html).
##### External type
@@ -836,10 +836,10 @@ In addition to the basic settings, Gravitino supports the following features:
| Feature | Description | Java doc |
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
-| Table partitioning | Equal to `PARTITION BY` in Apache Hive, It is a partitioning strategy that is used to split a table into parts based on partition keys. Some table engine may not support this feature | [Partition](pathname:///docs/0.5.1/api/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.html) |
-| Table bucketing | Equal to `CLUSTERED BY` in Apache Hive, Bucketing a.k.a (Clustering) is a technique to split the data into more manageable files/parts, (By specifying the number of buckets to create). The value of the bucketing column will be hashed by a user-defined number into buckets. | [Distribution](pathname:///docs/0.5.1/api/java/org/apache/gravitino/rel/expressions/distributions/Distribution.html) |
-| Table sort ordering | Equal to `SORTED BY` in Apache Hive, sort ordering is a method to sort the data in specific ways such as by a column or a function, and then store table data. it will highly improve the query performance under certain scenarios. | [SortOrder](pathname:///docs/0.5.1/api/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.html) |
-| Table indexes | Equal to `KEY/INDEX` in MySQL , unique key enforces uniqueness of values in one or more columns within a table. It ensures that no two rows have identical values in specified columns, thereby facilitating data integrity and enabling efficient data retrieval and manipulation operations. | [Index](pathname:///docs/0.5.1/api/java/org/apache/gravitino/rel/indexes/Index.html) |
+| Table partitioning | Equal to `PARTITION BY` in Apache Hive, It is a partitioning strategy that is used to split a table into parts based on partition keys. Some table engine may not support this feature | [Partition](pathname:///docs/0.6.0/api/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.html) |
+| Table bucketing | Equal to `CLUSTERED BY` in Apache Hive, Bucketing a.k.a (Clustering) is a technique to split the data into more manageable files/parts, (By specifying the number of buckets to create). The value of the bucketing column will be hashed by a user-defined number into buckets. | [Distribution](pathname:///docs/0.6.0/api/java/org/apache/gravitino/rel/expressions/distributions/Distribution.html) |
+| Table sort ordering | Equal to `SORTED BY` in Apache Hive, sort ordering is a method to sort the data in specific ways such as by a column or a function, and then store table data. it will highly improve the query performance under certain scenarios. | [SortOrder](pathname:///docs/0.6.0/api/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.html) |
+| Table indexes | Equal to `KEY/INDEX` in MySQL , unique key enforces uniqueness of values in one or more columns within a table. It ensures that no two rows have identical values in specified columns, thereby facilitating data integrity and enabling efficient data retrieval and manipulation operations. | [Index](pathname:///docs/0.6.0/api/java/org/apache/gravitino/rel/indexes/Index.html) |
For more information, please see the related document on [partitioning, bucketing, sorting, and indexes](table-partitioning-bucketing-sort-order-indexes.md).