World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#8792] improvement(all): Upgrade google-java-format from 1.7 to 1.15.0 to support JDK 17 language feature (#8793)
Mini Yub5af4dc09db7
diff --git a/.github/workflows/access-control-integration-test.yml b/.github/workflows/access-control-integration-test.ymlindex 722872d2ad..bfc5aeec59 100644--- a/.github/workflows/access-control-integration-test.yml+++ b/.github/workflows/access-control-integration-test.yml@@ -78,7 +78,7 @@ jobs:- name: Package Gravitinorun: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -87,9 +87,9 @@ jobs:- name: Authorization Integration Test (JDK${{ matrix.java-version }})id: integrationTestrun: |- ./gradlew -PtestMode=embedded -PjdbcBackend=h2 -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :authorizations:test- ./gradlew -PtestMode=deploy -PjdbcBackend=mysql -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :authorizations:test- ./gradlew -PtestMode=deploy -PjdbcBackend=postgresql -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :authorizations:test+ ./gradlew -PtestMode=embedded -PjdbcBackend=h2 -PskipDockerTests=false :authorizations:test+ ./gradlew -PtestMode=deploy -PjdbcBackend=mysql -PskipDockerTests=false :authorizations:test+ ./gradlew -PtestMode=deploy -PjdbcBackend=postgresql -PskipDockerTests=false :authorizations:test- name: Upload integrate tests reportsuses: actions/upload-artifact@v4diff --git a/.github/workflows/backend-integration-test-action.yml b/.github/workflows/backend-integration-test-action.ymlindex 413369eb43..266e2a8146 100644--- a/.github/workflows/backend-integration-test-action.yml+++ b/.github/workflows/backend-integration-test-action.yml@@ -47,7 +47,7 @@ jobs:- name: Package Gravitinoif: ${{ inputs.test-mode == 'deploy' }}run: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ inputs.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -61,7 +61,7 @@ jobs:- name: Backend Integration Test (JDK${{ inputs.java-version }}-${{ inputs.test-mode }}-${{ inputs.backend }})id: integrationTestrun: >- ./gradlew test -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdkVersion=${{ inputs.java-version }} -PjdbcBackend=${{ inputs.backend }} -PskipDockerTests=false+ ./gradlew test -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdbcBackend=${{ inputs.backend }} -PskipDockerTests=false-x :web:web:test -x :web:integration-test:test -x :clients:client-python:test -x :flink-connector:flink:test -x :spark-connector:spark-common:test-x :spark-connector:spark-3.3:test -x :spark-connector:spark-3.4:test -x :spark-connector:spark-3.5:test-x :spark-connector:spark-runtime-3.3:test -x :spark-connector:spark-runtime-3.4:test -x :spark-connector:spark-runtime-3.5:testdiff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 787acdfb90..c3408c0824 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -121,7 +121,7 @@ jobs:cache: 'gradle'- name: Test publish to local- run: ./gradlew publishToMavenLocal -x test -PjdkVersion=${{ matrix.java-version }}+ run: ./gradlew publishToMavenLocal -x test- name: Free up disk spacerun: |@@ -133,7 +133,10 @@ jobs:sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb- name: Build with Gradle- run: ./gradlew build -PskipITs -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false -x :clients:client-python:build+ run: ./gradlew build -PskipITs -PskipDockerTests=false -x :clients:client-python:build++ - name: Release with Gradle+ run: ./gradlew clean && ./gradlew release -x test --rerun-tasks- name: Upload unit tests reportuses: actions/upload-artifact@v4diff --git a/.github/workflows/cron-integration-test.yml b/.github/workflows/cron-integration-test.ymlindex ddd541d514..8f38b17b31 100644--- a/.github/workflows/cron-integration-test.yml+++ b/.github/workflows/cron-integration-test.yml@@ -75,7 +75,7 @@ jobs:- name: Package Gravitinorun: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -84,7 +84,7 @@ jobs:- name: Integration Testid: integrationTestrun: |- ./gradlew test -PskipTests -PtestMode=${{ matrix.test-mode }} -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false+ ./gradlew test -PskipTests -PtestMode=${{ matrix.test-mode }} -PskipDockerTests=false- name: Upload integrate tests reportsuses: actions/upload-artifact@v4diff --git a/.github/workflows/flink-integration-test-action.yml b/.github/workflows/flink-integration-test-action.ymlindex 55d7250fca..92b2dd9867 100644--- a/.github/workflows/flink-integration-test-action.yml+++ b/.github/workflows/flink-integration-test-action.yml@@ -38,7 +38,7 @@ jobs:- name: Package Gravitinorun: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ inputs.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -48,8 +48,8 @@ jobs:id: integrationTest# run embedded mode and deploy mode integration testsrun: |- ./gradlew -PskipTests -PtestMode=embedded -PjdkVersion=${{ inputs.java-version }} -PskipDockerTests=false :flink-connector:flink:test --tests "org.apache.gravitino.flink.connector.integration.test.**"- ./gradlew -PskipTests -PtestMode=deploy -PjdkVersion=${{ inputs.java-version }} -PskipDockerTests=false :flink-connector:flink:test --tests "org.apache.gravitino.flink.connector.integration.test.**"+ ./gradlew -PskipTests -PtestMode=embedded -PskipDockerTests=false :flink-connector:flink:test --tests "org.apache.gravitino.flink.connector.integration.test.**"+ ./gradlew -PskipTests -PtestMode=deploy -PskipDockerTests=false :flink-connector:flink:test --tests "org.apache.gravitino.flink.connector.integration.test.**"- name: Upload integrate tests reportsuses: actions/upload-artifact@v4diff --git a/.github/workflows/frontend-integration-test.yml b/.github/workflows/frontend-integration-test.ymlindex 6864b7fb24..841b4f390f 100644--- a/.github/workflows/frontend-integration-test.yml+++ b/.github/workflows/frontend-integration-test.yml@@ -75,7 +75,7 @@ jobs:- name: Package Gravitinorun: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -84,8 +84,8 @@ jobs:- name: Frontend Integration Testid: integrationTestrun: |- ./gradlew -PskipTests -PtestMode=embedded -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :web:integration-test:test- ./gradlew -PskipTests -PtestMode=deploy -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :web:integration-test:test+ ./gradlew -PskipTests -PtestMode=embedded -PskipDockerTests=false :web:integration-test:test+ ./gradlew -PskipTests -PtestMode=deploy -PskipDockerTests=false :web:integration-test:test- name: Upload integrate tests reportsuses: actions/upload-artifact@v4diff --git a/.github/workflows/gvfs-fuse-build-test.yml b/.github/workflows/gvfs-fuse-build-test.ymlindex 5447c49f10..09965be35e 100644--- a/.github/workflows/gvfs-fuse-build-test.yml+++ b/.github/workflows/gvfs-fuse-build-test.yml@@ -77,8 +77,8 @@ jobs:- name: Integration testrun: |- ./gradlew build -x :clients:client-python:build -x test -x web -PjdkVersion=${{ matrix.java-version }}- ./gradlew compileDistribution -x :clients:client-python:build -x test -x web -PjdkVersion=${{ matrix.java-version }}+ ./gradlew build -x :clients:client-python:build -x test -x web+ ./gradlew compileDistribution -x :clients:client-python:build -x test -x webcd clients/filesystem-fusemake test-s3make test-fuse-itdiff --git a/.github/workflows/python-integration-test.yml b/.github/workflows/python-integration-test.ymlindex f6a2cff7a5..ba16663d36 100644--- a/.github/workflows/python-integration-test.yml+++ b/.github/workflows/python-integration-test.yml@@ -71,12 +71,12 @@ jobs:- name: Python Client Integration Testid: integrationTestrun: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ matrix.java-version }}+ ./gradlew compileDistribution -x testfor pythonVersion in "3.9" "3.10" "3.11" "3.12"doecho "Use Python version ${pythonVersion} to test the Python client."- ./gradlew -PjdkVersion=${{ matrix.java-version }} -PpythonVersion=${pythonVersion} -PskipDockerTests=false :clients:client-python:test+ ./gradlew -PpythonVersion=${pythonVersion} -PskipDockerTests=false :clients:client-python:test# Clean Gravitino database to clean test datarm -rf ./distribution/package/datadonediff --git a/.github/workflows/spark-integration-test-action.yml b/.github/workflows/spark-integration-test-action.ymlindex 29c4378221..71bc6e7efe 100644--- a/.github/workflows/spark-integration-test-action.yml+++ b/.github/workflows/spark-integration-test-action.yml@@ -47,7 +47,7 @@ jobs:- name: Package Gravitinoif: ${{ inputs.test-mode == 'deploy' }}run: |- ./gradlew compileDistribution -x test -PjdkVersion=${{ inputs.java-version }}+ ./gradlew compileDistribution -x test- name: Free up disk spacerun: |@@ -57,10 +57,10 @@ jobs:id: integrationTestrun: |if [ "${{ inputs.scala-version }}" == "2.12" ];then- ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdkVersion=${{ inputs.java-version }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.3:test --tests "org.apache.gravitino.spark.connector.integration.test.**"+ ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.3:test --tests "org.apache.gravitino.spark.connector.integration.test.**"fi- ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdkVersion=${{ inputs.java-version }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.4:test --tests "org.apache.gravitino.spark.connector.integration.test.**"- ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PjdkVersion=${{ inputs.java-version }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.5:test --tests "org.apache.gravitino.spark.connector.integration.test.**"+ ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.4:test --tests "org.apache.gravitino.spark.connector.integration.test.**"+ ./gradlew -PskipTests -PtestMode=${{ inputs.test-mode }} -PscalaVersion=${{ inputs.scala-version }} -PskipDockerTests=false :spark-connector:spark-3.5:test --tests "org.apache.gravitino.spark.connector.integration.test.**"- name: Upload integrate tests reportsuses: actions/upload-artifact@v4diff --git a/.github/workflows/trino-integration-test.yml b/.github/workflows/trino-integration-test.ymlindex 3a872d3716..6f80fc7bad 100644--- a/.github/workflows/trino-integration-test.yml+++ b/.github/workflows/trino-integration-test.yml@@ -76,7 +76,7 @@ jobs:- name: Package Gravitinorun: |- ./gradlew compileDistribution compileTrinoConnector -x test -PjdkVersion=${{ matrix.java-version }}+ ./gradlew compileDistribution compileTrinoConnector -x test- name: Free up disk spacerun: |@@ -85,8 +85,8 @@ jobs:- name: Trino Integration Testid: integrationTestrun: |- ./gradlew -PskipTests -PtestMode=embedded -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :trino-connector:integration-test:test- ./gradlew -PskipTests -PtestMode=deploy -PjdkVersion=${{ matrix.java-version }} -PskipDockerTests=false :trino-connector:integration-test:test+ ./gradlew -PskipTests -PtestMode=embedded -PskipDockerTests=false :trino-connector:integration-test:test+ ./gradlew -PskipTests -PtestMode=deploy -PskipDockerTests=false :trino-connector:integration-test:test# Disable the Trino cascading query integration test, because the connector jars are private now.#trino-connector/integration-test/trino-test-tools/run_test.shdiff --git a/api/src/main/java/org/apache/gravitino/Audit.java b/api/src/main/java/org/apache/gravitino/Audit.javaindex 404210cb05..840bbdc742 100644--- a/api/src/main/java/org/apache/gravitino/Audit.java+++ b/api/src/main/java/org/apache/gravitino/Audit.java@@ -39,9 +39,13 @@ public interface Audit {*/Instant createTime();- /** @return The last modifier of the entity. */+ /**+ * @return The last modifier of the entity.+ */String lastModifier();- /** @return The last modified time of the entity. */+ /**+ * @return The last modified time of the entity.+ */Instant lastModifiedTime();}diff --git a/api/src/main/java/org/apache/gravitino/Auditable.java b/api/src/main/java/org/apache/gravitino/Auditable.javaindex cce04ada39..bfff776ae8 100644--- a/api/src/main/java/org/apache/gravitino/Auditable.java+++ b/api/src/main/java/org/apache/gravitino/Auditable.java@@ -27,6 +27,8 @@ import org.apache.gravitino.annotation.Evolving;@Evolvingpublic interface Auditable {- /** @return The audit information of the entity. */+ /**+ * @return The audit information of the entity.+ */Audit auditInfo();}diff --git a/api/src/main/java/org/apache/gravitino/Catalog.java b/api/src/main/java/org/apache/gravitino/Catalog.javaindex 90f7c81b08..9fbf9f3ac5 100644--- a/api/src/main/java/org/apache/gravitino/Catalog.java+++ b/api/src/main/java/org/apache/gravitino/Catalog.java@@ -150,13 +150,19 @@ public interface Catalog extends Auditable {*/String AUTHORIZATION_PROVIDER = "authorization-provider";- /** @return The name of the catalog. */+ /**+ * @return The name of the catalog.+ */String name();- /** @return The type of the catalog. */+ /**+ * @return The type of the catalog.+ */Type type();- /** @return The provider of the catalog. */+ /**+ * @return The provider of the catalog.+ */String provider();/**diff --git a/api/src/main/java/org/apache/gravitino/Schema.java b/api/src/main/java/org/apache/gravitino/Schema.javaindex a7657a848b..292ed59e52 100644--- a/api/src/main/java/org/apache/gravitino/Schema.java+++ b/api/src/main/java/org/apache/gravitino/Schema.java@@ -37,16 +37,22 @@ import org.apache.gravitino.tag.SupportsTags;@Evolvingpublic interface Schema extends Auditable {- /** @return The name of the Schema. */+ /**+ * @return The name of the Schema.+ */String name();- /** @return The comment of the Schema. Null is returned if the comment is not set. */+ /**+ * @return The comment of the Schema. Null is returned if the comment is not set.+ */@Nullabledefault String comment() {return null;}- /** @return The properties of the Schema. An empty map is returned if no properties are set. */+ /**+ * @return The properties of the Schema. An empty map is returned if no properties are set.+ */default Map<String, String> properties() {return Collections.emptyMap();}diff --git a/api/src/main/java/org/apache/gravitino/annotation/Stable.java b/api/src/main/java/org/apache/gravitino/annotation/Stable.javaindex 88aca75b5d..e987e0ed51 100644--- a/api/src/main/java/org/apache/gravitino/annotation/Stable.java+++ b/api/src/main/java/org/apache/gravitino/annotation/Stable.java@@ -39,6 +39,8 @@ import java.lang.annotation.Target;})public @interface Stable {- /** @return The version when the API was first marked stable. */+ /**+ * @return The version when the API was first marked stable.+ */String since();}diff --git a/api/src/main/java/org/apache/gravitino/authorization/Privilege.java b/api/src/main/java/org/apache/gravitino/authorization/Privilege.javaindex 5515e45fbd..540c0aa7fa 100644--- a/api/src/main/java/org/apache/gravitino/authorization/Privilege.java+++ b/api/src/main/java/org/apache/gravitino/authorization/Privilege.java@@ -28,10 +28,14 @@ import org.apache.gravitino.annotation.Unstable;@Unstablepublic interface Privilege {- /** @return The generic name of the privilege. */+ /**+ * @return The generic name of the privilege.+ */Name name();- /** @return A readable string representation for the privilege. */+ /**+ * @return A readable string representation for the privilege.+ */String simpleString();/**diff --git a/api/src/main/java/org/apache/gravitino/authorization/Privileges.java b/api/src/main/java/org/apache/gravitino/authorization/Privileges.javaindex cf3bdb0692..8c736fa69a 100644--- a/api/src/main/java/org/apache/gravitino/authorization/Privileges.java+++ b/api/src/main/java/org/apache/gravitino/authorization/Privileges.java@@ -282,12 +282,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateCatalog allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateCatalog deny() {return DENY_INSTANCE;}@@ -309,12 +313,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static UseCatalog allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static UseCatalog deny() {return DENY_INSTANCE;}@@ -334,12 +342,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static UseSchema allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static UseSchema deny() {return DENY_INSTANCE;}@@ -361,12 +373,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateSchema allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateSchema deny() {return DENY_INSTANCE;}@@ -388,12 +404,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateTable allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateTable deny() {return DENY_INSTANCE;}@@ -415,12 +435,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static SelectTable allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static SelectTable deny() {return DENY_INSTANCE;}@@ -442,12 +466,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ModifyTable allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ModifyTable deny() {return DENY_INSTANCE;}@@ -469,12 +497,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateFileset allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateFileset deny() {return DENY_INSTANCE;}@@ -496,12 +528,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ReadFileset allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ReadFileset deny() {return DENY_INSTANCE;}@@ -523,12 +559,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static WriteFileset allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static WriteFileset deny() {return DENY_INSTANCE;}@@ -550,12 +590,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateTopic allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateTopic deny() {return DENY_INSTANCE;}@@ -577,12 +621,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ConsumeTopic allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ConsumeTopic deny() {return DENY_INSTANCE;}@@ -604,12 +652,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ProduceTopic allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ProduceTopic deny() {return DENY_INSTANCE;}@@ -631,12 +683,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ManageUsers allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ManageUsers deny() {return DENY_INSTANCE;}@@ -658,12 +714,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ManageGroups allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ManageGroups deny() {return DENY_INSTANCE;}@@ -685,12 +745,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateRole allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateRole deny() {return DENY_INSTANCE;}@@ -712,12 +776,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static ManageGrants allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static ManageGrants deny() {return DENY_INSTANCE;}@@ -739,12 +807,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateModel allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateModel deny() {return DENY_INSTANCE;}@@ -764,12 +836,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static UseModel allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static UseModel deny() {return DENY_INSTANCE;}@@ -791,12 +867,16 @@ public class Privileges {super(condition, name);}- /** @return The instance with allow condition of the privilege. */+ /**+ * @return The instance with allow condition of the privilege.+ */public static CreateModelVersion allow() {return ALLOW_INSTANCE;}- /** @return The instance with deny condition of the privilege. */+ /**+ * @return The instance with deny condition of the privilege.+ */public static CreateModelVersion deny() {return DENY_INSTANCE;}diff --git a/api/src/main/java/org/apache/gravitino/file/Fileset.java b/api/src/main/java/org/apache/gravitino/file/Fileset.javaindex 10681e0e2d..7089213984 100644--- a/api/src/main/java/org/apache/gravitino/file/Fileset.java+++ b/api/src/main/java/org/apache/gravitino/file/Fileset.java@@ -89,16 +89,22 @@ public interface Fileset extends Auditable {EXTERNAL}- /** @return Name of the fileset object. */+ /**+ * @return Name of the fileset object.+ */String name();- /** @return The comment of the fileset object. Null is returned if no comment is set. */+ /**+ * @return The comment of the fileset object. Null is returned if no comment is set.+ */@Nullabledefault String comment() {return null;}- /** @return The type of the fileset object. */+ /**+ * @return The type of the fileset object.+ */Type type();/**diff --git a/api/src/main/java/org/apache/gravitino/messaging/Topic.java b/api/src/main/java/org/apache/gravitino/messaging/Topic.javaindex 57cd480da5..3473ccbc7e 100644--- a/api/src/main/java/org/apache/gravitino/messaging/Topic.java+++ b/api/src/main/java/org/apache/gravitino/messaging/Topic.java@@ -39,16 +39,22 @@ import org.apache.gravitino.tag.SupportsTags;@Evolvingpublic interface Topic extends Auditable {- /** @return Name of the topic */+ /**+ * @return Name of the topic+ */String name();- /** @return The comment of the topic object. Null is returned if no comment is set. */+ /**+ * @return The comment of the topic object. Null is returned if no comment is set.+ */@Nullabledefault String comment() {return null;}- /** @return The properties of the topic object. Empty map is returned if no properties are set. */+ /**+ * @return The properties of the topic object. Empty map is returned if no properties are set.+ */default Map<String, String> properties() {return Collections.emptyMap();}diff --git a/api/src/main/java/org/apache/gravitino/model/Model.java b/api/src/main/java/org/apache/gravitino/model/Model.javaindex 991497063b..dd44c7039d 100644--- a/api/src/main/java/org/apache/gravitino/model/Model.java+++ b/api/src/main/java/org/apache/gravitino/model/Model.java@@ -42,7 +42,9 @@ import org.apache.gravitino.tag.SupportsTags;@Evolvingpublic interface Model extends Auditable {- /** @return Name of the model object. */+ /**+ * @return Name of the model object.+ */String name();/**diff --git a/api/src/main/java/org/apache/gravitino/policy/Policy.java b/api/src/main/java/org/apache/gravitino/policy/Policy.javaindex 330d36d097..4f0e7cd1e0 100644--- a/api/src/main/java/org/apache/gravitino/policy/Policy.java+++ b/api/src/main/java/org/apache/gravitino/policy/Policy.java@@ -148,7 +148,9 @@ public interface Policy extends Auditable {*/Optional<Boolean> inherited();- /** @return The associated objects of the policy. */+ /**+ * @return The associated objects of the policy.+ */default AssociatedObjects associatedObjects() {throw new UnsupportedOperationException("The associatedObjects method is not supported.");}@@ -156,13 +158,17 @@ public interface Policy extends Auditable {/** The interface of the associated objects of the policy. */interface AssociatedObjects {- /** @return The number of objects that are associated with this policy */+ /**+ * @return The number of objects that are associated with this policy+ */default int count() {MetadataObject[] objects = objects();return objects == null ? 0 : objects.length;}- /** @return The list of objects that are associated with this policy. */+ /**+ * @return The list of objects that are associated with this policy.+ */MetadataObject[] objects();}}diff --git a/api/src/main/java/org/apache/gravitino/policy/PolicyContent.java b/api/src/main/java/org/apache/gravitino/policy/PolicyContent.javaindex 2c8d3f641e..e66191afdf 100644--- a/api/src/main/java/org/apache/gravitino/policy/PolicyContent.java+++ b/api/src/main/java/org/apache/gravitino/policy/PolicyContent.java@@ -27,10 +27,14 @@ import org.apache.gravitino.MetadataObject;/** The interface of the content of the policy. */public interface PolicyContent {- /** @return the set of metadata object types that the policy can be applied to */+ /**+ * @return the set of metadata object types that the policy can be applied to+ */Set<MetadataObject.Type> supportedObjectTypes();- /** @return The additional properties of the policy. */+ /**+ * @return The additional properties of the policy.+ */Map<String, String> properties();/**diff --git a/api/src/main/java/org/apache/gravitino/policy/SupportsPolicies.java b/api/src/main/java/org/apache/gravitino/policy/SupportsPolicies.javaindex eb5bd327f1..65356fd34b 100644--- a/api/src/main/java/org/apache/gravitino/policy/SupportsPolicies.java+++ b/api/src/main/java/org/apache/gravitino/policy/SupportsPolicies.java@@ -28,10 +28,14 @@ import org.apache.gravitino.exceptions.PolicyAlreadyAssociatedException;*/@Evolvingpublic interface SupportsPolicies {- /** @return List all the policy names for the specific object. */+ /**+ * @return List all the policy names for the specific object.+ */String[] listPolicies();- /** @return List all the policies with details for the specific object. */+ /**+ * @return List all the policies with details for the specific object.+ */Policy[] listPolicyInfos();/**diff --git a/api/src/main/java/org/apache/gravitino/rel/Column.java b/api/src/main/java/org/apache/gravitino/rel/Column.javaindex e508970fa5..9503d4ca0b 100644--- a/api/src/main/java/org/apache/gravitino/rel/Column.java+++ b/api/src/main/java/org/apache/gravitino/rel/Column.java@@ -52,19 +52,29 @@ public interface Column {*/Expression DEFAULT_VALUE_OF_CURRENT_TIMESTAMP = FunctionExpression.of("current_timestamp");- /** @return The name of this column. */+ /**+ * @return The name of this column.+ */String name();- /** @return The data type of this column. */+ /**+ * @return The data type of this column.+ */Type dataType();- /** @return The comment of this column, null if not specified. */+ /**+ * @return The comment of this column, null if not specified.+ */String comment();- /** @return True if this column may produce null values. Default is true. */+ /**+ * @return True if this column may produce null values. Default is true.+ */boolean nullable();- /** @return True if this column is an auto-increment column. Default is false. */+ /**+ * @return True if this column is an auto-increment column. Default is false.+ */boolean autoIncrement();/**diff --git a/api/src/main/java/org/apache/gravitino/rel/Table.java b/api/src/main/java/org/apache/gravitino/rel/Table.javaindex c5b4d06084..619694b1a2 100644--- a/api/src/main/java/org/apache/gravitino/rel/Table.java+++ b/api/src/main/java/org/apache/gravitino/rel/Table.java@@ -44,13 +44,19 @@ import org.apache.gravitino.tag.SupportsTags;@Evolvingpublic interface Table extends Auditable {- /** @return Name of the table. */+ /**+ * @return Name of the table.+ */String name();- /** @return The columns of the table. */+ /**+ * @return The columns of the table.+ */Column[] columns();- /** @return The physical partitioning of the table. */+ /**+ * @return The physical partitioning of the table.+ */default Transform[] partitioning() {return Transforms.EMPTY_TRANSFORM;}@@ -78,13 +84,17 @@ public interface Table extends Auditable {return Indexes.EMPTY_INDEXES;}- /** @return The comment of the table. Null is returned if no comment is set. */+ /**+ * @return The comment of the table. Null is returned if no comment is set.+ */@Nullabledefault String comment() {return null;}- /** @return The properties of the table. Empty map is returned if no properties are set. */+ /**+ * @return The properties of the table. Empty map is returned if no properties are set.+ */default Map<String, String> properties() {return Collections.emptyMap();}diff --git a/api/src/main/java/org/apache/gravitino/rel/TableChange.java b/api/src/main/java/org/apache/gravitino/rel/TableChange.javaindex 03c05622b7..cb6c741dea 100644--- a/api/src/main/java/org/apache/gravitino/rel/TableChange.java+++ b/api/src/main/java/org/apache/gravitino/rel/TableChange.java@@ -758,17 +758,23 @@ public interface TableChange {this.fieldNames = fieldNames;}- /** @return The type of the index. */+ /**+ * @return The type of the index.+ */public IndexType getType() {return type;}- /** @return The name of the index. */+ /**+ * @return The name of the index.+ */public String getName() {return name;}- /** @return The field names of the index. */+ /**+ * @return The field names of the index.+ */public String[][] getFieldNames() {return fieldNames;}@@ -809,12 +815,16 @@ public interface TableChange {this.ifExists = ifExists;}- /** @return The name of the index to be deleted. */+ /**+ * @return The name of the index to be deleted.+ */public String getName() {return name;}- /** @return If true, silence the error if index does not exist during drop. */+ /**+ * @return If true, silence the error if index does not exist during drop.+ */public boolean isIfExists() {return ifExists;}@@ -839,7 +849,9 @@ public interface TableChange {*/interface ColumnPosition {- /** @return The first position of ColumnPosition instance. */+ /**+ * @return The first position of ColumnPosition instance.+ */static ColumnPosition first() {return First.INSTANCE;}@@ -854,7 +866,9 @@ public interface TableChange {return new After(column);}- /** @return The default position of ColumnPosition instance. */+ /**+ * @return The default position of ColumnPosition instance.+ */static ColumnPosition defaultPos() {return Default.INSTANCE;}diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/Expression.java b/api/src/main/java/org/apache/gravitino/rel/expressions/Expression.javaindex 9f392faac9..eb188ffa50 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/Expression.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/Expression.java@@ -40,10 +40,14 @@ public interface Expression {*/NamedReference[] EMPTY_NAMED_REFERENCE = new NamedReference[0];- /** @return An array of the children of this node. Children should not change. */+ /**+ * @return An array of the children of this node. Children should not change.+ */Expression[] children();- /** @return A list of fields or columns that are referenced by this expression. */+ /**+ * @return A list of fields or columns that are referenced by this expression.+ */default NamedReference[] references() {Set<NamedReference> set = new HashSet<>();for (Expression e : children()) {diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/FunctionExpression.java b/api/src/main/java/org/apache/gravitino/rel/expressions/FunctionExpression.javaindex 39e77e33da..6ad82064b9 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/FunctionExpression.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/FunctionExpression.java@@ -51,10 +51,14 @@ public interface FunctionExpression extends Expression {return of(functionName, EMPTY_EXPRESSION);}- /** @return The transform function name. */+ /**+ * @return The transform function name.+ */String functionName();- /** @return The arguments passed to the transform function. */+ /**+ * @return The arguments passed to the transform function.+ */Expression[] arguments();@Override@@ -82,7 +86,9 @@ public interface FunctionExpression extends Expression {return arguments;}- /** @return The string representation of the function expression. */+ /**+ * @return The string representation of the function expression.+ */@Overridepublic String toString() {if (arguments.length == 0) {diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/Literal.java b/api/src/main/java/org/apache/gravitino/rel/expressions/Literal.javaindex fed28a9dda..aaa4b4d053 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/Literal.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/Literal.java@@ -33,10 +33,14 @@ import org.apache.gravitino.rel.types.Types;*/@Deprecatedpublic interface Literal<T> extends Expression {- /** @return The literal value. */+ /**+ * @return The literal value.+ */T value();- /** @return The data type of the literal. */+ /**+ * @return The data type of the literal.+ */Type dataType();@Overridediff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/NamedReference.java b/api/src/main/java/org/apache/gravitino/rel/expressions/NamedReference.javaindex 1bf7e8211c..c9320de1a5 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/NamedReference.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/NamedReference.java@@ -110,7 +110,9 @@ public interface NamedReference extends Expression {return Arrays.hashCode(fieldName);}- /** @return The string representation of the field reference. */+ /**+ * @return The string representation of the field reference.+ */@Overridepublic String toString() {return String.join(".", fieldName);diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/UnparsedExpression.java b/api/src/main/java/org/apache/gravitino/rel/expressions/UnparsedExpression.javaindex b7448f62df..176f06916e 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/UnparsedExpression.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/UnparsedExpression.java@@ -29,7 +29,9 @@ import org.apache.gravitino.rel.expressions.literals.Literal;@Evolvingpublic interface UnparsedExpression extends Expression {- /** @return The unparsed expression as a string. */+ /**+ * @return The unparsed expression as a string.+ */String unparsedExpression();@Override@@ -55,7 +57,9 @@ public interface UnparsedExpression extends Expression {this.unparsedExpression = unparsedExpression;}- /** @return The unparsed expression as a string. */+ /**+ * @return The unparsed expression as a string.+ */@Overridepublic String unparsedExpression() {return unparsedExpression;diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/distributions/Distribution.java b/api/src/main/java/org/apache/gravitino/rel/expressions/distributions/Distribution.javaindex c74a432795..564b328fde 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/distributions/Distribution.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/distributions/Distribution.java@@ -26,7 +26,9 @@ import org.apache.gravitino.rel.expressions.Expression;@Evolvingpublic interface Distribution extends Expression {- /** @return the distribution strategy name. */+ /**+ * @return the distribution strategy name.+ */Strategy strategy();/**@@ -35,7 +37,9 @@ public interface Distribution extends Expression {*/int number();- /** @return The expressions passed to the distribution function. */+ /**+ * @return The expressions passed to the distribution function.+ */Expression[] expressions();@Overridediff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/literals/Literal.java b/api/src/main/java/org/apache/gravitino/rel/expressions/literals/Literal.javaindex ddb798d61f..43e7720db9 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/literals/Literal.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/literals/Literal.java@@ -30,10 +30,14 @@ import org.apache.gravitino.rel.types.Type;@Evolvingpublic interface Literal<T> extends Expression {- /** @return The literal value. */+ /**+ * @return The literal value.+ */T value();- /** @return The data type of the literal. */+ /**+ * @return The data type of the literal.+ */Type dataType();@Overridediff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.java b/api/src/main/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.javaindex 0b5cc8555f..31641eb7ce 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/sorts/SortOrder.java@@ -27,16 +27,24 @@ import org.apache.gravitino.rel.expressions.Expression;@Evolvingpublic interface SortOrder extends Expression {- /** @return The sort expression. */+ /**+ * @return The sort expression.+ */Expression expression();- /** @return The sort direction. */+ /**+ * @return The sort direction.+ */SortDirection direction();- /** @return The null ordering. */+ /**+ * @return The null ordering.+ */NullOrdering nullOrdering();- /** @return A {@link SortOrder} with the given sort direction. */+ /**+ * @return A {@link SortOrder} with the given sort direction.+ */@Overridedefault Expression[] children() {return new Expression[] {expression()};diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transform.java b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transform.javaindex f95749e9ab..24ef19d174 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transform.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transform.java@@ -35,10 +35,14 @@ import org.apache.gravitino.rel.partitions.Partitions;*/@Evolvingpublic interface Transform extends Expression {- /** @return The transform function name. */+ /**+ * @return The transform function name.+ */String name();- /** @return The arguments passed to the transform function. */+ /**+ * @return The arguments passed to the transform function.+ */Expression[] arguments();/**@@ -59,7 +63,9 @@ public interface Transform extends Expression {abstract class SingleFieldTransform implements Transform {NamedReference ref;- /** @return the referenced field name as an array of String parts. */+ /**+ * @return the referenced field name as an array of String parts.+ */public String[] fieldName() {return ref.fieldName();}diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.javaindex 035b330595..08eecc4644 100644--- a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java+++ b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java@@ -308,7 +308,9 @@ public class Transforms {this.ref = ref;}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_IDENTITY;@@ -331,7 +333,9 @@ public class Transforms {this.ref = ref;}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_YEAR;@@ -354,7 +358,9 @@ public class Transforms {this.ref = ref;}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_MONTH;@@ -377,7 +383,9 @@ public class Transforms {this.ref = ref;}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_DAY;@@ -400,7 +408,9 @@ public class Transforms {this.ref = ref;}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_HOUR;@@ -428,23 +438,31 @@ public class Transforms {this.fields = fields;}- /** @return The number of buckets to use. */+ /**+ * @return The number of buckets to use.+ */public int numBuckets() {return numBuckets.value();}- /** @return The field names to transform. */+ /**+ * @return The field names to transform.+ */public String[][] fieldNames() {return Arrays.stream(fields).map(NamedReference::fieldName).toArray(String[][]::new);}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_BUCKET;}- /** @return The arguments to the transform. */+ /**+ * @return The arguments to the transform.+ */@Overridepublic Expression[] arguments() {return ObjectArrays.concat(new Expression[] {numBuckets}, fields, Expression.class);@@ -481,23 +499,31 @@ public class Transforms {this.field = field;}- /** @return The width to truncate to. */+ /**+ * @return The width to truncate to.+ */public int width() {return width.value();}- /** @return The field name to transform. */+ /**+ * @return The field name to transform.+ */public String[] fieldName() {return field.fieldName();}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_TRUNCATE;}- /** @return The arguments to the transform. */+ /**+ * @return The arguments to the transform.+ */@Overridepublic Expression[] arguments() {return new Expression[] {width, field};@@ -537,24 +563,32 @@ public class Transforms {this.assignments = assignments;}- /** @return The field names to include in the list. */+ /**+ * @return The field names to include in the list.+ */public String[][] fieldNames() {return Arrays.stream(fields).map(NamedReference::fieldName).toArray(String[][]::new);}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_LIST;}- /** @return The arguments to the transform. */+ /**+ * @return The arguments to the transform.+ */@Overridepublic Expression[] arguments() {return fields;}- /** @return The assignments to the transform. */+ /**+ * @return The assignments to the transform.+ */@Overridepublic ListPartition[] assignments() {return assignments;@@ -594,24 +628,32 @@ public class Transforms {this.assignments = assignments;}- /** @return The field name to transform. */+ /**+ * @return The field name to transform.+ */public String[] fieldName() {return field.fieldName();}- /** @return The name of the transform. */+ /**+ * @return The name of the transform.+ */@Overridepublic String name() {return NAME_OF_RANGE;}- /** @return The arguments to the transform. */+ /**+ * @return The arguments to the transform.+ */@Overridepublic Expression[] arguments() {return new Expression[] {field};}- /** @return The assignments to the transform. */+ /**+ * @return The assignments to the transform.+ */@Overridepublic RangePartition[] assignments() {return assignments;@@ -642,13 +684,17 @@ public class Transforms {this.arguments = arguments;}- /** @return The name of the function to apply. */+ /**+ * @return The name of the function to apply.+ */@Overridepublic String name() {return name;}- /** @return The arguments to the function. */+ /**+ * @return The arguments to the function.+ */@Overridepublic Expression[] arguments() {return arguments;diff --git a/api/src/main/java/org/apache/gravitino/rel/indexes/Index.java b/api/src/main/java/org/apache/gravitino/rel/indexes/Index.javaindex ee487457f2..4b92977fd5 100644--- a/api/src/main/java/org/apache/gravitino/rel/indexes/Index.java+++ b/api/src/main/java/org/apache/gravitino/rel/indexes/Index.java@@ -28,10 +28,14 @@ import org.apache.gravitino.annotation.Evolving;@Evolvingpublic interface Index {- /** @return The type of the index. eg: PRIMARY_KEY and UNIQUE_KEY. */+ /**+ * @return The type of the index. eg: PRIMARY_KEY and UNIQUE_KEY.+ */IndexType type();- /** @return The name of the index. */+ /**+ * @return The name of the index.+ */String name();/**diff --git a/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java b/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.javaindex 33b8f5cd81..ce10fd0a0f 100644--- a/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java+++ b/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java@@ -92,25 +92,33 @@ public class Indexes {this.fieldNames = fieldNames;}- /** @return The type of the index */+ /**+ * @return The type of the index+ */@Overridepublic IndexType type() {return indexType;}- /** @return The name of the index */+ /**+ * @return The name of the index+ */@Overridepublic String name() {return name;}- /** @return The field names under the table contained in the index */+ /**+ * @return The field names under the table contained in the index+ */@Overridepublic String[][] fieldNames() {return fieldNames;}- /** @return the builder for creating a new instance of IndexImpl. */+ /**+ * @return the builder for creating a new instance of IndexImpl.+ */public static Builder builder() {return new Builder();}diff --git a/api/src/main/java/org/apache/gravitino/rel/partitions/IdentityPartition.java b/api/src/main/java/org/apache/gravitino/rel/partitions/IdentityPartition.javaindex 7d86245923..acafc0c346 100644--- a/api/src/main/java/org/apache/gravitino/rel/partitions/IdentityPartition.java+++ b/api/src/main/java/org/apache/gravitino/rel/partitions/IdentityPartition.java@@ -33,7 +33,9 @@ import org.apache.gravitino.rel.expressions.literals.Literal;@Evolvingpublic interface IdentityPartition extends Partition {- /** @return The field names of the identity partition. */+ /**+ * @return The field names of the identity partition.+ */String[][] fieldNames();/**diff --git a/api/src/main/java/org/apache/gravitino/rel/partitions/ListPartition.java b/api/src/main/java/org/apache/gravitino/rel/partitions/ListPartition.javaindex 42967c511d..22c9bd7fbd 100644--- a/api/src/main/java/org/apache/gravitino/rel/partitions/ListPartition.java+++ b/api/src/main/java/org/apache/gravitino/rel/partitions/ListPartition.java@@ -37,6 +37,8 @@ import org.apache.gravitino.rel.expressions.literals.Literal;@Evolvingpublic interface ListPartition extends Partition {- /** @return The values of the list partition. */+ /**+ * @return The values of the list partition.+ */Literal<?>[][] lists();}diff --git a/api/src/main/java/org/apache/gravitino/rel/partitions/Partition.java b/api/src/main/java/org/apache/gravitino/rel/partitions/Partition.javaindex 0070534612..e11d71fa57 100644--- a/api/src/main/java/org/apache/gravitino/rel/partitions/Partition.java+++ b/api/src/main/java/org/apache/gravitino/rel/partitions/Partition.java@@ -30,9 +30,13 @@ import org.apache.gravitino.rel.Table;@Evolvingpublic interface Partition {- /** @return The name of the partition. */+ /**+ * @return The name of the partition.+ */String name();- /** @return The properties of the partition, such as statistics, location, etc. */+ /**+ * @return The properties of the partition, such as statistics, location, etc.+ */Map<String, String> properties();}diff --git a/api/src/main/java/org/apache/gravitino/rel/partitions/Partitions.java b/api/src/main/java/org/apache/gravitino/rel/partitions/Partitions.javaindex 25b00309c0..9f293e976d 100644--- a/api/src/main/java/org/apache/gravitino/rel/partitions/Partitions.java+++ b/api/src/main/java/org/apache/gravitino/rel/partitions/Partitions.java@@ -99,13 +99,17 @@ public class Partitions {this.lower = lower;}- /** @return The upper bound of the partition. */+ /**+ * @return The upper bound of the partition.+ */@Overridepublic Literal<?> upper() {return upper;}- /** @return The lower bound of the partition. */+ /**+ * @return The lower bound of the partition.+ */@Overridepublic Literal<?> lower() {return lower;@@ -155,7 +159,9 @@ public class Partitions {this.lists = lists;}- /** @return The values of the list partition. */+ /**+ * @return The values of the list partition.+ */@Overridepublic Literal<?>[][] lists() {return lists;@@ -208,13 +214,17 @@ public class Partitions {this.properties = properties;}- /** @return The field names of the identity partition. */+ /**+ * @return The field names of the identity partition.+ */@Overridepublic String[][] fieldNames() {return fieldNames;}- /** @return The values of the identity partition. */+ /**+ * @return The values of the identity partition.+ */@Overridepublic Literal<?>[] values() {return values;diff --git a/api/src/main/java/org/apache/gravitino/rel/partitions/RangePartition.java b/api/src/main/java/org/apache/gravitino/rel/partitions/RangePartition.javaindex 80b01caaf2..9eeae4f5e3 100644--- a/api/src/main/java/org/apache/gravitino/rel/partitions/RangePartition.java+++ b/api/src/main/java/org/apache/gravitino/rel/partitions/RangePartition.java@@ -31,9 +31,13 @@ import org.apache.gravitino.rel.expressions.literals.Literal;@Evolvingpublic interface RangePartition extends Partition {- /** @return The upper bound of the partition. */+ /**+ * @return The upper bound of the partition.+ */Literal<?> upper();- /** @return The lower bound of the partition. */+ /**+ * @return The lower bound of the partition.+ */Literal<?> lower();}diff --git a/api/src/main/java/org/apache/gravitino/rel/types/Decimal.java b/api/src/main/java/org/apache/gravitino/rel/types/Decimal.javaindex 83bd875f47..76520bfcd4 100644--- a/api/src/main/java/org/apache/gravitino/rel/types/Decimal.java+++ b/api/src/main/java/org/apache/gravitino/rel/types/Decimal.java@@ -82,17 +82,23 @@ public class Decimal {return of(new BigDecimal(value), precision, scale);}- /** @return The value of the decimal. */+ /**+ * @return The value of the decimal.+ */public BigDecimal value() {return value;}- /** @return The precision of the decimal. */+ /**+ * @return The precision of the decimal.+ */public int precision() {return precision;}- /** @return The scale of the decimal. */+ /**+ * @return The scale of the decimal.+ */public int scale() {return scale;}diff --git a/api/src/main/java/org/apache/gravitino/rel/types/Type.java b/api/src/main/java/org/apache/gravitino/rel/types/Type.javaindex fe6d72f6b9..4fb4d740c2 100644--- a/api/src/main/java/org/apache/gravitino/rel/types/Type.java+++ b/api/src/main/java/org/apache/gravitino/rel/types/Type.java@@ -23,10 +23,14 @@ import org.apache.gravitino.annotation.Evolving;/** An interface representing all data types supported by Apache Gravitino. */@Evolvingpublic interface Type {- /** @return The generic name of the type. */+ /**+ * @return The generic name of the type.+ */Name name();- /** @return A readable string representation for the type. */+ /**+ * @return A readable string representation for the type.+ */String simpleString();/** The root type name of this type. */@@ -134,12 +138,16 @@ public interface Type {abstract class IntegralType extends NumericType {private final boolean signed;- /** @param signed or unsigned of the integer type. */+ /**+ * @param signed or unsigned of the integer type.+ */public IntegralType(boolean signed) {this.signed = signed;}- /** @return True if the integer type has signed, false otherwise. */+ /**+ * @return True if the integer type has signed, false otherwise.+ */public boolean signed() {return signed;}diff --git a/api/src/main/java/org/apache/gravitino/rel/types/Types.java b/api/src/main/java/org/apache/gravitino/rel/types/Types.javaindex 8b7b78895d..be785124ff 100644--- a/api/src/main/java/org/apache/gravitino/rel/types/Types.java+++ b/api/src/main/java/org/apache/gravitino/rel/types/Types.java@@ -30,7 +30,9 @@ public class Types {public static class NullType implements Type {private static final NullType INSTANCE = new NullType();- /** @return The singleton instance of {@link NullType}. */+ /**+ * @return The singleton instance of {@link NullType}.+ */public static NullType get() {return INSTANCE;}@@ -52,7 +54,9 @@ public class Types {public static class BooleanType extends Type.PrimitiveType {private static final BooleanType INSTANCE = new BooleanType();- /** @return The singleton instance of {@link BooleanType}. */+ /**+ * @return The singleton instance of {@link BooleanType}.+ */public static BooleanType get() {return INSTANCE;}@@ -75,12 +79,16 @@ public class Types {private static final ByteType INSTANCE = new ByteType(true);private static final ByteType UNSIGNED_INSTANCE = new ByteType(false);- /** @return The singleton instance of unsigned byte type */+ /**+ * @return The singleton instance of unsigned byte type+ */public static ByteType unsigned() {return UNSIGNED_INSTANCE;}- /** @return The singleton instance of {@link ByteType}. */+ /**+ * @return The singleton instance of {@link ByteType}.+ */public static ByteType get() {return INSTANCE;}@@ -105,12 +113,16 @@ public class Types {private static final ShortType INSTANCE = new ShortType(true);private static final ShortType UNSIGNED_INSTANCE = new ShortType(false);- /** @return The singleton instance of unsigned short type */+ /**+ * @return The singleton instance of unsigned short type+ */public static ShortType unsigned() {return UNSIGNED_INSTANCE;}- /** @return The singleton instance of {@link ShortType}. */+ /**+ * @return The singleton instance of {@link ShortType}.+ */public static ShortType get() {return INSTANCE;}@@ -135,12 +147,16 @@ public class Types {private static final IntegerType INSTANCE = new IntegerType(true);private static final IntegerType UNSIGNED_INSTANCE = new IntegerType(false);- /** @return The singleton instance of unsigned integer type */+ /**+ * @return The singleton instance of unsigned integer type+ */public static IntegerType unsigned() {return UNSIGNED_INSTANCE;}- /** @return The singleton instance of {@link IntegerType}. */+ /**+ * @return The singleton instance of {@link IntegerType}.+ */public static IntegerType get() {return INSTANCE;}@@ -165,12 +181,16 @@ public class Types {private static final LongType INSTANCE = new LongType(true);private static final LongType UNSIGNED_INSTANCE = new LongType(false);- /** @return The singleton instance of unsigned long type */+ /**+ * @return The singleton instance of unsigned long type+ */public static LongType unsigned() {return UNSIGNED_INSTANCE;}- /** @return The singleton instance of {@link LongType}. */+ /**+ * @return The singleton instance of {@link LongType}.+ */public static LongType get() {return INSTANCE;}@@ -194,7 +214,9 @@ public class Types {public static class FloatType extends Type.FractionType {private static final FloatType INSTANCE = new FloatType();- /** @return The singleton instance of {@link FloatType}. */+ /**+ * @return The singleton instance of {@link FloatType}.+ */public static FloatType get() {return INSTANCE;}@@ -216,7 +238,9 @@ public class Types {public static class DoubleType extends Type.FractionType {private static final DoubleType INSTANCE = new DoubleType();- /** @return The singleton instance of {@link DoubleType}. */+ /**+ * @return The singleton instance of {@link DoubleType}.+ */public static DoubleType get() {return INSTANCE;}@@ -266,18 +290,24 @@ public class Types {scale);}- /** @return The name of the decimal type. */+ /**+ * @return The name of the decimal type.+ */@Overridepublic Name name() {return Name.DECIMAL;}- /** @return The precision of the decimal type. */+ /**+ * @return The precision of the decimal type.+ */public int precision() {return precision;}- /** @return The scale of the decimal type. */+ /**+ * @return The scale of the decimal type.+ */public int scale() {return scale;}@@ -309,14 +339,18 @@ public class Types {public static class DateType extends Type.DateTimeType {private static final DateType INSTANCE = new DateType();- /** @return The singleton instance of {@link DateType}. */+ /**+ * @return The singleton instance of {@link DateType}.+ */public static DateType get() {return INSTANCE;}private DateType() {}- /** @return The name of the date type. */+ /**+ * @return The name of the date type.+ */@Overridepublic Name name() {return Name.DATE;@@ -332,7 +366,9 @@ public class Types {public static class TimeType extends Type.DateTimeType {private static final TimeType INSTANCE = new TimeType();- /** @return The singleton instance of {@link TimeType}. */+ /**+ * @return The singleton instance of {@link TimeType}.+ */public static TimeType get() {return INSTANCE;}@@ -361,12 +397,16 @@ public class Types {this.precision = precision;}- /** @return The precision of the time type. */+ /**+ * @return The precision of the time type.+ */public int precision() {return precision;}- /** @return True if the time type has precision set, false otherwise. */+ /**+ * @return True if the time type has precision set, false otherwise.+ */public boolean hasPrecisionSet() {return precision != DATE_TIME_PRECISION_NOT_SET;}@@ -405,12 +445,16 @@ public class Types {private static final TimestampType INSTANCE_WITHOUT_TIME_ZONE = new TimestampType(false);private static final TimestampType INSTANCE_WITH_TIME_ZONE = new TimestampType(true);- /** @return A {@link TimestampType} without time zone. */+ /**+ * @return A {@link TimestampType} without time zone.+ */public static TimestampType withoutTimeZone() {return INSTANCE_WITHOUT_TIME_ZONE;}- /** @return A {@link TimestampType} with time zone. */+ /**+ * @return A {@link TimestampType} with time zone.+ */public static TimestampType withTimeZone() {return INSTANCE_WITH_TIME_ZONE;}@@ -455,17 +499,23 @@ public class Types {this.precision = precision;}- /** @return True if the timestamp type has time zone, false otherwise. */+ /**+ * @return True if the timestamp type has time zone, false otherwise.+ */public boolean hasTimeZone() {return withTimeZone;}- /** @return The precision of the timestamp type. */+ /**+ * @return The precision of the timestamp type.+ */public int precision() {return precision;}- /** @return True if the timestamp type has precision set, false otherwise. */+ /**+ * @return True if the timestamp type has precision set, false otherwise.+ */public boolean hasPrecisionSet() {return precision != DATE_TIME_PRECISION_NOT_SET;}@@ -475,7 +525,9 @@ public class Types {return Name.TIMESTAMP;}- /** @return The simple string representation of the timestamp type. */+ /**+ * @return The simple string representation of the timestamp type.+ */@Overridepublic String simpleString() {return hasPrecisionSet()@@ -508,7 +560,9 @@ public class Types {public static class IntervalYearType extends Type.IntervalType {private static final IntervalYearType INSTANCE = new IntervalYearType();- /** @return The singleton instance of {@link IntervalYearType}. */+ /**+ * @return The singleton instance of {@link IntervalYearType}.+ */public static IntervalYearType get() {return INSTANCE;}@@ -530,7 +584,9 @@ public class Types {public static class IntervalDayType extends Type.IntervalType {private static final IntervalDayType INSTANCE = new IntervalDayType();- /** @return The singleton instance of {@link IntervalDayType}. */+ /**+ * @return The singleton instance of {@link IntervalDayType}.+ */public static IntervalDayType get() {return INSTANCE;}@@ -555,7 +611,9 @@ public class Types {public static class StringType extends Type.PrimitiveType {private static final StringType INSTANCE = new StringType();- /** @return The singleton instance of {@link StringType}. */+ /**+ * @return The singleton instance of {@link StringType}.+ */public static StringType get() {return INSTANCE;}@@ -577,7 +635,9 @@ public class Types {public static class UUIDType extends Type.PrimitiveType {private static final UUIDType INSTANCE = new UUIDType();- /** @return The singleton instance of {@link UUIDType}. */+ /**+ * @return The singleton instance of {@link UUIDType}.+ */public static UUIDType get() {return INSTANCE;}@@ -620,7 +680,9 @@ public class Types {return Name.FIXED;}- /** @return The length of the fixed type. */+ /**+ * @return The length of the fixed type.+ */public int length() {return length;}@@ -670,7 +732,9 @@ public class Types {return Name.VARCHAR;}- /** @return The length of the var char type. */+ /**+ * @return The length of the var char type.+ */public int length() {return length;}@@ -720,7 +784,9 @@ public class Types {return Name.FIXEDCHAR;}- /** @return The length of the fixed char type. */+ /**+ * @return The length of the fixed char type.+ */public int length() {return length;}@@ -752,7 +818,9 @@ public class Types {public static class BinaryType extends Type.PrimitiveType {private static final BinaryType INSTANCE = new BinaryType();- /** @return The singleton instance of {@link BinaryType}. */+ /**+ * @return The singleton instance of {@link BinaryType}.+ */public static BinaryType get() {return INSTANCE;}@@ -789,7 +857,9 @@ public class Types {this.fields = fields;}- /** @return The fields of the struct type. */+ /**+ * @return The fields of the struct type.+ */public Field[] fields() {return fields;}@@ -889,22 +959,30 @@ public class Types {this.comment = comment;}- /** @return The name of the field. */+ /**+ * @return The name of the field.+ */public String name() {return name;}- /** @return The type of the field. */+ /**+ * @return The type of the field.+ */public Type type() {return type;}- /** @return Whether the field is nullable. */+ /**+ * @return Whether the field is nullable.+ */public boolean nullable() {return nullable;}- /** @return The comment of the field. May be null if not set. */+ /**+ * @return The comment of the field. May be null if not set.+ */public String comment() {return comment;}@@ -928,7 +1006,9 @@ public class Types {return Objects.hash(name, type, nullable);}- /** @return The simple string representation of the field. */+ /**+ * @return The simple string representation of the field.+ */public String simpleString() {return String.format("%s: %s %s COMMENT %s",@@ -984,12 +1064,16 @@ public class Types {this.elementNullable = elementNullable;}- /** @return The element type of the list. */+ /**+ * @return The element type of the list.+ */public Type elementType() {return elementType;}- /** @return Whether the element of the list is nullable. */+ /**+ * @return Whether the element of the list is nullable.+ */public boolean elementNullable() {return elementNullable;}@@ -1079,17 +1163,23 @@ public class Types {return Name.MAP;}- /** @return The key type of the map. */+ /**+ * @return The key type of the map.+ */public Type keyType() {return keyType;}- /** @return The value type of the map. */+ /**+ * @return The value type of the map.+ */public Type valueType() {return valueType;}- /** @return Whether the value of the map is nullable. */+ /**+ * @return Whether the value of the map is nullable.+ */public boolean valueNullable() {return valueNullable;}@@ -1140,7 +1230,9 @@ public class Types {this.types = types;}- /** @return The types of the union. */+ /**+ * @return The types of the union.+ */public Type[] types() {return types;}@@ -1197,7 +1289,9 @@ public class Types {this.unparsedType = unparsedType;}- /** @return The unparsed type as a string. */+ /**+ * @return The unparsed type as a string.+ */public String unparsedType() {return unparsedType;}@@ -1253,7 +1347,9 @@ public class Types {this.catalogString = catalogString;}- /** @return The string representation of this type in external catalog. */+ /**+ * @return The string representation of this type in external catalog.+ */public String catalogString() {return catalogString;}diff --git a/api/src/main/java/org/apache/gravitino/tag/Tag.java b/api/src/main/java/org/apache/gravitino/tag/Tag.javaindex f5d9f1285a..c2c107dca6 100644--- a/api/src/main/java/org/apache/gravitino/tag/Tag.java+++ b/api/src/main/java/org/apache/gravitino/tag/Tag.java@@ -39,13 +39,19 @@ public interface Tag extends Auditable {*/String PROPERTY_COLOR = "color";- /** @return The name of the tag. */+ /**+ * @return The name of the tag.+ */String name();- /** @return The comment of the tag. */+ /**+ * @return The comment of the tag.+ */String comment();- /** @return The properties of the tag. */+ /**+ * @return The properties of the tag.+ */Map<String, String> properties();/**@@ -60,7 +66,9 @@ public interface Tag extends Auditable {*/Optional<Boolean> inherited();- /** @return The associated objects of the tag. */+ /**+ * @return The associated objects of the tag.+ */default AssociatedObjects associatedObjects() {throw new UnsupportedOperationException("The associatedObjects method is not supported.");}@@ -68,13 +76,17 @@ public interface Tag extends Auditable {/** The interface of the associated objects of the tag. */interface AssociatedObjects {- /** @return The number of objects that are associated with this Tag */+ /**+ * @return The number of objects that are associated with this Tag+ */default int count() {MetadataObject[] objects = objects();return objects == null ? 0 : objects.length;}- /** @return The list of objects that are associated with this tag. */+ /**+ * @return The list of objects that are associated with this tag.+ */MetadataObject[] objects();}}diff --git a/build.gradle.kts b/build.gradle.ktsindex 8c4813c798..8ad4287168 100644--- a/build.gradle.kts+++ b/build.gradle.kts@@ -115,10 +115,8 @@ allprojects {plugins.withType<com.diffplug.gradle.spotless.SpotlessPlugin>().configureEach {configure<com.diffplug.gradle.spotless.SpotlessExtension> {java {- // Fix the Google Java Format version to 1.7. Since JDK8 only support Google Java Format- // 1.7, which is not compatible with JDK17. We will use a newer version when we upgrade to- // JDK17.- googleJavaFormat("1.7")+ // 1.15.0 supports both JDK8 and JDK17.+ googleJavaFormat("1.15.0")removeUnusedImports()trimTrailingWhitespace()replaceRegex(diff --git a/catalogs/catalog-common/src/main/java/org/apache/gravitino/credential/CredentialConstants.java b/catalogs/catalog-common/src/main/java/org/apache/gravitino/credential/CredentialConstants.javaindex 665a5836b9..220a128e53 100644--- a/catalogs/catalog-common/src/main/java/org/apache/gravitino/credential/CredentialConstants.java+++ b/catalogs/catalog-common/src/main/java/org/apache/gravitino/credential/CredentialConstants.java@@ -20,7 +20,9 @@package org.apache.gravitino.credential;public class CredentialConstants {- /** @deprecated Please use {@link #CREDENTIAL_PROVIDERS} instead. */+ /**+ * @deprecated Please use {@link #CREDENTIAL_PROVIDERS} instead.+ */@Deprecated public static final String CREDENTIAL_PROVIDER_TYPE = "credential-provider-type";public static final String CREDENTIAL_PROVIDERS = "credential-providers";diff --git a/catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java b/catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.javaindex 551728e67b..0aed858430 100644--- a/catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java+++ b/catalogs/catalog-fileset/src/main/java/org/apache/gravitino/catalog/fileset/FilesetCatalogOperations.java@@ -878,8 +878,7 @@ public class FilesetCatalogOperations extends ManagedSchemaOperations// may mis-delete the storage location of the external fileset if it happens to be under// the schema path.ClassLoader cl = Thread.currentThread().getContextClassLoader();- filesets- .parallelStream()+ filesets.parallelStream().filter(f -> f.filesetType() == Fileset.Type.MANAGED).forEach(f -> {diff --git a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/JdbcCatalog.java b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/JdbcCatalog.javaindex d073aadbaf..34b6f6927a 100644--- a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/JdbcCatalog.java+++ b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/JdbcCatalog.java@@ -72,12 +72,16 @@ public abstract class JdbcCatalog extends BaseCatalog<JdbcCatalog> {return new JdbcCatalogCapability();}- /** @return The {@link JdbcExceptionConverter} to be used by the catalog. */+ /**+ * @return The {@link JdbcExceptionConverter} to be used by the catalog.+ */protected JdbcExceptionConverter createExceptionConverter() {return new JdbcExceptionConverter() {};}- /** @return The {@link JdbcTypeConverter} to be used by the catalog. */+ /**+ * @return The {@link JdbcTypeConverter} to be used by the catalog.+ */protected abstract JdbcTypeConverter createJdbcTypeConverter();/**@@ -85,10 +89,14 @@ public abstract class JdbcCatalog extends BaseCatalog<JdbcCatalog> {*/protected abstract JdbcDatabaseOperations createJdbcDatabaseOperations();- /** @return The {@link JdbcTableOperations} to be used by the catalog to manage tables in the */+ /**+ * @return The {@link JdbcTableOperations} to be used by the catalog to manage tables in the+ */protected abstract JdbcTableOperations createJdbcTableOperations();- /** @return The {@link JdbcColumnDefaultValueConverter} to be used by the catalog */+ /**+ * @return The {@link JdbcColumnDefaultValueConverter} to be used by the catalog+ */protected abstract JdbcColumnDefaultValueConverter createJdbcColumnDefaultValueConverter();@Overridediff --git a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcColumnDefaultValueConverter.java b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcColumnDefaultValueConverter.javaindex a72c4cbb7f..899ab9af49 100644--- a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcColumnDefaultValueConverter.java+++ b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/converter/JdbcColumnDefaultValueConverter.java@@ -63,7 +63,9 @@ public class JdbcColumnDefaultValueConverter {} else if (type instanceof Type.NumericType) {return literal.value().toString();} else if (type instanceof Types.TimestampType) {- /** @see LocalDateTime#toString() would return like 'yyyy-MM-ddTHH:mm:ss' */+ /**+ * @see LocalDateTime#toString() would return like 'yyyy-MM-ddTHH:mm:ss'+ */if (literal.value() instanceof String || literal.value() instanceof LocalDateTime) {return String.format("'%s'", literal.value().toString().replace("T", " "));}diff --git a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/DatabaseOperation.java b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/DatabaseOperation.javaindex a11e1cf8ee..3a401e6334 100644--- a/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/DatabaseOperation.java+++ b/catalogs/catalog-jdbc-common/src/main/java/org/apache/gravitino/catalog/jdbc/operation/DatabaseOperation.java@@ -56,7 +56,9 @@ public interface DatabaseOperation {*/boolean delete(String databaseName, boolean cascade);- /** @return The list name of databases. */+ /**+ * @return The list name of databases.+ */List<String> listDatabases();/**diff --git a/catalogs/catalog-lakehouse-hudi/src/main/java/org/apache/gravitino/catalog/lakehouse/hudi/HudiCatalog.java b/catalogs/catalog-lakehouse-hudi/src/main/java/org/apache/gravitino/catalog/lakehouse/hudi/HudiCatalog.javaindex f2146f36d8..d5356cd56d 100644--- a/catalogs/catalog-lakehouse-hudi/src/main/java/org/apache/gravitino/catalog/lakehouse/hudi/HudiCatalog.java+++ b/catalogs/catalog-lakehouse-hudi/src/main/java/org/apache/gravitino/catalog/lakehouse/hudi/HudiCatalog.java@@ -35,7 +35,9 @@ public class HudiCatalog extends BaseCatalog<HudiCatalog> {static final HudiTablePropertiesMetadata TABLE_PROPERTIES_METADATA =new HudiTablePropertiesMetadata();- /** @return The short name of the catalog. */+ /**+ * @return The short name of the catalog.+ */@Overridepublic String shortName() {return "lakehouse-hudi";diff --git a/catalogs/catalog-lakehouse-iceberg/src/main/java/org/apache/gravitino/catalog/lakehouse/iceberg/IcebergCatalog.java b/catalogs/catalog-lakehouse-iceberg/src/main/java/org/apache/gravitino/catalog/lakehouse/iceberg/IcebergCatalog.javaindex 1010d7dde5..58858ec81b 100644--- a/catalogs/catalog-lakehouse-iceberg/src/main/java/org/apache/gravitino/catalog/lakehouse/iceberg/IcebergCatalog.java+++ b/catalogs/catalog-lakehouse-iceberg/src/main/java/org/apache/gravitino/catalog/lakehouse/iceberg/IcebergCatalog.java@@ -36,7 +36,9 @@ public class IcebergCatalog extends BaseCatalog<IcebergCatalog> {static final IcebergTablePropertiesMetadata TABLE_PROPERTIES_META =new IcebergTablePropertiesMetadata();- /** @return The short name of the catalog. */+ /**+ * @return The short name of the catalog.+ */@Overridepublic String shortName() {return "lakehouse-iceberg";diff --git a/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalog.java b/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalog.javaindex e6438a4456..7fa8499b77 100644--- a/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalog.java+++ b/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalog.java@@ -39,7 +39,9 @@ public class PaimonCatalog extends BaseCatalog<PaimonCatalog> {static final PaimonTablePropertiesMetadata TABLE_PROPERTIES_META =new PaimonTablePropertiesMetadata();- /** @return The short name of the catalog. */+ /**+ * @return The short name of the catalog.+ */@Overridepublic String shortName() {return "lakehouse-paimon";diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/AuditCommand.java b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/AuditCommand.javaindex 484de061d7..9ea32d18a4 100644--- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/AuditCommand.java+++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/AuditCommand.java@@ -25,7 +25,9 @@ import org.apache.gravitino.cli.CommandContext;/** Base class for commands that display audit information. */public abstract class AuditCommand extends Command {- /** @param context The command context. */+ /**+ * @param context The command context.+ */protected AuditCommand(CommandContext context) {super(context);}diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelCatalog.java b/clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelCatalog.javaindex da3977b09e..8e2a7bd368 100644--- a/clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelCatalog.java+++ b/clients/client-java/src/main/java/org/apache/gravitino/client/GenericModelCatalog.java@@ -406,7 +406,9 @@ class GenericModelCatalog extends BaseSchemaCatalog implements ModelCatalog {return new GenericModelVersion(resp.getModelVersion());}- /** @return A new builder instance for {@link GenericModelCatalog}. */+ /**+ * @return A new builder instance for {@link GenericModelCatalog}.+ */public static Builder builder() {return new Builder();}diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoMetalake.java b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoMetalake.javaindex 0c3c43b442..9a61e04424 100644--- a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoMetalake.java+++ b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoMetalake.java@@ -1618,7 +1618,9 @@ public class GravitinoMetalake extends MetalakeDTOreturn super.equals(that);}- /** @return the builder for creating a new instance of GravitinoMetaLake. */+ /**+ * @return the builder for creating a new instance of GravitinoMetaLake.+ */public static Builder builder() {return new Builder();}diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoVersion.java b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoVersion.javaindex 3fe2aef5a5..81d5b6c33c 100644--- a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoVersion.java+++ b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoVersion.java@@ -35,7 +35,9 @@ public class GravitinoVersion extends VersionDTO {}@VisibleForTesting- /** @return parse the version number for a version string */+ /**+ * @return parse the version number for a version string+ */int[] getVersionNumber() {return Version.parseVersionNumber(version());}diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/MessagingCatalog.java b/clients/client-java/src/main/java/org/apache/gravitino/client/MessagingCatalog.javaindex d77af54014..49fda10130 100644--- a/clients/client-java/src/main/java/org/apache/gravitino/client/MessagingCatalog.java+++ b/clients/client-java/src/main/java/org/apache/gravitino/client/MessagingCatalog.java@@ -65,7 +65,9 @@ class MessagingCatalog extends BaseSchemaCatalog implements TopicCatalog {super(namespace, name, type, provider, comment, properties, auditDTO, restClient);}- /** @return A new builder for {@link MessagingCatalog}. */+ /**+ * @return A new builder for {@link MessagingCatalog}.+ */public static Builder builder() {return new Builder();}diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalTable.java b/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalTable.javaindex 88562de570..7a3dd671d9 100644--- a/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalTable.java+++ b/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalTable.java@@ -143,7 +143,9 @@ class RelationalTablereturn table.name();}- /** @return the columns of the table. */+ /**+ * @return the columns of the table.+ */@Overridepublic Column[] columns() {return Arrays.stream(table.columns())@@ -159,50 +161,66 @@ class RelationalTable.toArray(Column[]::new);}- /** @return the partitioning of the table. */+ /**+ * @return the partitioning of the table.+ */@Overridepublic Transform[] partitioning() {return table.partitioning();}- /** @return the sort order of the table. */+ /**+ * @return the sort order of the table.+ */@Overridepublic SortOrder[] sortOrder() {return table.sortOrder();}- /** @return the distribution of the table. */+ /**+ * @return the distribution of the table.+ */@Overridepublic Distribution distribution() {return table.distribution();}- /** @return the comment of the table. */+ /**+ * @return the comment of the table.+ */@Nullable@Overridepublic String comment() {return table.comment();}- /** @return the properties of the table. */+ /**+ * @return the properties of the table.+ */@Overridepublic Map<String, String> properties() {return table.properties();}- /** @return the audit information of the table. */+ /**+ * @return the audit information of the table.+ */@Overridepublic Audit auditInfo() {return table.auditInfo();}- /** @return the indexes of the table. */+ /**+ * @return the indexes of the table.+ */@Overridepublic Index[] index() {return table.index();}- /** @return The partition names of the table. */+ /**+ * @return The partition names of the table.+ */@Overridepublic String[] listPartitionNames() {PartitionNameListResponse resp =@@ -214,7 +232,9 @@ class RelationalTablereturn resp.partitionNames();}- /** @return The partition request path. */+ /**+ * @return The partition request path.+ */@VisibleForTestingString getPartitionRequestPath() {return "api/metalakes/"@@ -228,7 +248,9 @@ class RelationalTable+ "/partitions";}- /** @return The partitions of the table. */+ /**+ * @return The partitions of the table.+ */@Overridepublic Partition[] listPartitions() {Map<String, String> params = new HashMap<>();diff --git a/common/src/main/java/org/apache/gravitino/Version.java b/common/src/main/java/org/apache/gravitino/Version.javaindex 5dcf78a4fe..b4183b10ed 100644--- a/common/src/main/java/org/apache/gravitino/Version.java+++ b/common/src/main/java/org/apache/gravitino/Version.java@@ -70,12 +70,16 @@ public class Version {}}- /** @return the current versionInfo */+ /**+ * @return the current versionInfo+ */public static VersionInfo getCurrentVersion() {return INSTANCE.versionInfo;}- /** @return the current version DTO */+ /**+ * @return the current version DTO+ */public static VersionDTO getCurrentVersionDTO() {return INSTANCE.versionDTO;}diff --git a/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java b/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.javaindex 78b40a813c..d521c9a4e3 100644--- a/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java+++ b/common/src/main/java/org/apache/gravitino/auth/KerberosUtils.java@@ -145,7 +145,9 @@ public class KerberosUtils {}}- /** @return The Kerberos login module name. */+ /**+ * @return The Kerberos login module name.+ */public static String getKrb5LoginModuleName() {return "com.sun.security.auth.module.Krb5LoginModule";}diff --git a/common/src/main/java/org/apache/gravitino/dto/AuditDTO.java b/common/src/main/java/org/apache/gravitino/dto/AuditDTO.javaindex 7763dfd5d7..1fc343c70f 100644--- a/common/src/main/java/org/apache/gravitino/dto/AuditDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/AuditDTO.java@@ -51,25 +51,33 @@ public class AuditDTO implements Audit {this.lastModifiedTime = lastModifiedTime;}- /** @return The creator of the audit. */+ /**+ * @return The creator of the audit.+ */@Overridepublic String creator() {return creator;}- /** @return The create time of the audit. */+ /**+ * @return The create time of the audit.+ */@Overridepublic Instant createTime() {return createTime;}- /** @return The last modifier of the audit. */+ /**+ * @return The last modifier of the audit.+ */@Overridepublic String lastModifier() {return lastModifier;}- /** @return The last modified time of the audit. */+ /**+ * @return The last modified time of the audit.+ */@Overridepublic Instant lastModifiedTime() {return lastModifiedTime;diff --git a/common/src/main/java/org/apache/gravitino/dto/CatalogDTO.java b/common/src/main/java/org/apache/gravitino/dto/CatalogDTO.javaindex d00c856212..f39c21a9db 100644--- a/common/src/main/java/org/apache/gravitino/dto/CatalogDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/CatalogDTO.java@@ -257,7 +257,9 @@ public class CatalogDTO implements Catalog {}}- /** @return the builder for creating a new instance of CatalogDTO. */+ /**+ * @return the builder for creating a new instance of CatalogDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java b/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.javaindex 6da5265784..0cd6aaff67 100644--- a/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java@@ -64,25 +64,33 @@ public class MetalakeDTO implements Metalake {this.audit = audit;}- /** @return The name of the Metalake DTO. */+ /**+ * @return The name of the Metalake DTO.+ */@Overridepublic String name() {return name;}- /** @return The comment of the Metalake DTO. */+ /**+ * @return The comment of the Metalake DTO.+ */@Overridepublic String comment() {return comment;}- /** @return The properties of the Metalake DTO. */+ /**+ * @return The properties of the Metalake DTO.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The audit information of the Metalake DTO. */+ /**+ * @return The audit information of the Metalake DTO.+ */@Overridepublic Audit auditInfo() {return audit;@@ -203,7 +211,9 @@ public class MetalakeDTO implements Metalake {return Objects.hashCode(name, comment, audit, properties);}- /** @return the builder for creating a new instance of MetalakeDTO. */+ /**+ * @return the builder for creating a new instance of MetalakeDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/SchemaDTO.java b/common/src/main/java/org/apache/gravitino/dto/SchemaDTO.javaindex 90ff2e16db..a8639a452a 100644--- a/common/src/main/java/org/apache/gravitino/dto/SchemaDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/SchemaDTO.java@@ -57,25 +57,33 @@ public class SchemaDTO implements Schema {this.audit = audit;}- /** @return The name of the schema. */+ /**+ * @return The name of the schema.+ */@Overridepublic String name() {return name;}- /** @return The comment associated with the schema. */+ /**+ * @return The comment associated with the schema.+ */@Overridepublic String comment() {return comment;}- /** @return The properties associated with the schema. */+ /**+ * @return The properties associated with the schema.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The audit information for the schema. */+ /**+ * @return The audit information for the schema.+ */@Overridepublic AuditDTO auditInfo() {return audit;@@ -157,7 +165,9 @@ public class SchemaDTO implements Schema {}}- /** @return the builder for creating a new instance of SchemaDTO. */+ /**+ * @return the builder for creating a new instance of SchemaDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/VersionDTO.java b/common/src/main/java/org/apache/gravitino/dto/VersionDTO.javaindex 64d5b180d9..c39f6b3c5c 100644--- a/common/src/main/java/org/apache/gravitino/dto/VersionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/VersionDTO.java@@ -56,17 +56,23 @@ public class VersionDTO {this.gitCommit = gitCommit;}- /** @return The version of the software. */+ /**+ * @return The version of the software.+ */public String version() {return version;}- /** @return The date the software was compiled. */+ /**+ * @return The date the software was compiled.+ */public String compileDate() {return compileDate;}- /** @return The git commit of the software. */+ /**+ * @return The git commit of the software.+ */public String gitCommit() {return gitCommit;}diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/GroupDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/GroupDTO.javaindex 125cc009d0..e8ff49804e 100644--- a/common/src/main/java/org/apache/gravitino/dto/authorization/GroupDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/authorization/GroupDTO.java@@ -55,7 +55,9 @@ public class GroupDTO implements Group {this.roles = roles;}- /** @return The name of the Group DTO. */+ /**+ * @return The name of the Group DTO.+ */@Overridepublic String name() {return name;@@ -71,7 +73,9 @@ public class GroupDTO implements Group {return roles;}- /** @return The audit information of the Group DTO. */+ /**+ * @return The audit information of the Group DTO.+ */@Overridepublic Audit auditInfo() {return audit;diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/PrivilegeDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/PrivilegeDTO.javaindex e8554c015a..dfb0c04007 100644--- a/common/src/main/java/org/apache/gravitino/dto/authorization/PrivilegeDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/authorization/PrivilegeDTO.java@@ -75,7 +75,9 @@ public class PrivilegeDTO implements Privilege {}}- /** @return the builder for creating a new instance of PrivilegeDTO. */+ /**+ * @return the builder for creating a new instance of PrivilegeDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/RoleDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/RoleDTO.javaindex d0c51753e4..d369913a0e 100644--- a/common/src/main/java/org/apache/gravitino/dto/authorization/RoleDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/authorization/RoleDTO.java@@ -68,7 +68,9 @@ public class RoleDTO implements Role {this.securableObjects = securableObjects;}- /** @return The name of the Role DTO. */+ /**+ * @return The name of the Role DTO.+ */@Overridepublic String name() {return name;@@ -96,7 +98,9 @@ public class RoleDTO implements Role {return Arrays.asList(securableObjects);}- /** @return The audit information of the Role DTO. */+ /**+ * @return The audit information of the Role DTO.+ */@Overridepublic Audit auditInfo() {return audit;diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/SecurableObjectDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/SecurableObjectDTO.javaindex 7101479940..c326cdbadb 100644--- a/common/src/main/java/org/apache/gravitino/dto/authorization/SecurableObjectDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/authorization/SecurableObjectDTO.java@@ -43,7 +43,9 @@ public class SecurableObjectDTO implements SecurableObject {/** Default constructor for Jackson deserialization. */protected SecurableObjectDTO() {}- /** @return The full name of the securable object. */+ /**+ * @return The full name of the securable object.+ */@JsonProperty("fullName")public String getFullName() {return fullName();@@ -91,7 +93,9 @@ public class SecurableObjectDTO implements SecurableObject {return Collections.unmodifiableList(Arrays.asList(privileges));}- /** @return the builder for creating a new instance of SecurableObjectDTO. */+ /**+ * @return the builder for creating a new instance of SecurableObjectDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.javaindex a8894c9499..35530291bc 100644--- a/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java@@ -55,7 +55,9 @@ public class UserDTO implements User {this.roles = roles;}- /** @return The name of the User DTO. */+ /**+ * @return The name of the User DTO.+ */@Overridepublic String name() {return name;@@ -71,7 +73,9 @@ public class UserDTO implements User {return roles;}- /** @return The audit information of the User DTO. */+ /**+ * @return The audit information of the User DTO.+ */@Overridepublic Audit auditInfo() {return audit;diff --git a/common/src/main/java/org/apache/gravitino/dto/credential/CredentialDTO.java b/common/src/main/java/org/apache/gravitino/dto/credential/CredentialDTO.javaindex 506ab5f1f5..50a9bddb13 100644--- a/common/src/main/java/org/apache/gravitino/dto/credential/CredentialDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/credential/CredentialDTO.java@@ -77,7 +77,9 @@ public class CredentialDTO implements Credential {throw new UnsupportedOperationException("CredentialDTO doesn't support initWithCredentialInfo");}- /** @return a new builder for constructing a Credential DTO. */+ /**+ * @return a new builder for constructing a Credential DTO.+ */public static Builder builder() {return new Builder();}@@ -123,7 +125,9 @@ public class CredentialDTO implements Credential {return this;}- /** @return The constructed credential DTO. */+ /**+ * @return The constructed credential DTO.+ */public CredentialDTO build() {return credentialDTO;}diff --git a/common/src/main/java/org/apache/gravitino/dto/messaging/TopicDTO.java b/common/src/main/java/org/apache/gravitino/dto/messaging/TopicDTO.javaindex 44ca689a3f..5a2f10d5b9 100644--- a/common/src/main/java/org/apache/gravitino/dto/messaging/TopicDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/messaging/TopicDTO.java@@ -29,7 +29,9 @@ import org.apache.gravitino.messaging.Topic;/** Represents a topic DTO (Data Transfer Object). */public class TopicDTO implements Topic {- /** @return a new builder for constructing a Topic DTO. */+ /**+ * @return a new builder for constructing a Topic DTO.+ */public static Builder builder() {return new Builder();}@@ -173,7 +175,9 @@ public class TopicDTO implements Topic {return this;}- /** @return The constructed Topic DTO. */+ /**+ * @return The constructed Topic DTO.+ */public TopicDTO build() {return new TopicDTO(name, comment, properties, audit);}diff --git a/common/src/main/java/org/apache/gravitino/dto/policy/PolicyDTO.java b/common/src/main/java/org/apache/gravitino/dto/policy/PolicyDTO.javaindex a7ceae5292..d6c24dca24 100644--- a/common/src/main/java/org/apache/gravitino/dto/policy/PolicyDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/policy/PolicyDTO.java@@ -83,7 +83,9 @@ public class PolicyDTO implements Policy {return Objects.hash(name, comment, policyType, enabled, content, audit);}- /** @return a new builder for constructing a PolicyDTO. */+ /**+ * @return a new builder for constructing a PolicyDTO.+ */public static Builder builder() {return new Builder();}@@ -208,7 +210,9 @@ public class PolicyDTO implements Policy {return this;}- /** @return The constructed Policy DTO. */+ /**+ * @return The constructed Policy DTO.+ */public PolicyDTO build() {Preconditions.checkArgument(StringUtils.isNotBlank(policyDTO.name), "policy name cannot be empty");diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/SortOrderDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/SortOrderDTO.javaindex bd570832e1..9c5632b873 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/SortOrderDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/SortOrderDTO.java@@ -51,24 +51,32 @@ public class SortOrderDTO implements SortOrder {this.nullOrdering = nullOrdering;}- /** @return The sort term. */+ /**+ * @return The sort term.+ */public FunctionArg sortTerm() {return sortTerm;}- /** @return The sort expression. */+ /**+ * @return The sort expression.+ */@Overridepublic Expression expression() {return sortTerm;}- /** @return The sort direction. */+ /**+ * @return The sort direction.+ */@Overridepublic SortDirection direction() {return direction;}- /** @return The null ordering. */+ /**+ * @return The null ordering.+ */@Overridepublic NullOrdering nullOrdering() {return nullOrdering;@@ -143,7 +151,9 @@ public class SortOrderDTO implements SortOrder {}}- /** @return the builder for creating a new instance of SortOrderDTO. */+ /**+ * @return the builder for creating a new instance of SortOrderDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/TableDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/TableDTO.javaindex d029c609b9..c1fb160a38 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/TableDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/TableDTO.java@@ -97,55 +97,73 @@ public class TableDTO implements Table {this.indexes = indexes;}- /** @return The name of the table. */+ /**+ * @return The name of the table.+ */@Overridepublic String name() {return name;}- /** @return The columns of the table. */+ /**+ * @return The columns of the table.+ */@Overridepublic Column[] columns() {return columns;}- /** @return The comment associated with the table. */+ /**+ * @return The comment associated with the table.+ */@Overridepublic String comment() {return comment;}- /** @return The properties associated with the table. */+ /**+ * @return The properties associated with the table.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The audit information for the table. */+ /**+ * @return The audit information for the table.+ */@Overridepublic AuditDTO auditInfo() {return audit;}- /** @return The partitioning of the table. */+ /**+ * @return The partitioning of the table.+ */@Overridepublic Transform[] partitioning() {return partitioning;}- /** @return The sort orders of the table. */+ /**+ * @return The sort orders of the table.+ */@Overridepublic SortOrder[] sortOrder() {return sortOrders;}- /** @return The distribution of the table. */+ /**+ * @return The distribution of the table.+ */@Overridepublic Distribution distribution() {return distribution;}- /** @return The indexes of the table. */+ /**+ * @return The indexes of the table.+ */@Overridepublic Index[] index() {return indexes;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FieldReferenceDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FieldReferenceDTO.javaindex 4ebd936a97..c6ec02895e 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FieldReferenceDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FieldReferenceDTO.java@@ -41,13 +41,17 @@ public class FieldReferenceDTO implements FunctionArg, NamedReference {this.fieldName = fieldName;}- /** @return The field name. */+ /**+ * @return The field name.+ */@Overridepublic String[] fieldName() {return fieldName;}- /** @return The name of the field reference. */+ /**+ * @return The name of the field reference.+ */@Overridepublic ArgType argType() {return ArgType.FIELD;@@ -92,7 +96,9 @@ public class FieldReferenceDTO implements FunctionArg, NamedReference {}}- /** @return the builder for creating a new instance of FieldReferenceDTO. */+ /**+ * @return the builder for creating a new instance of FieldReferenceDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FuncExpressionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FuncExpressionDTO.javaindex abde934c2a..200006fdf9 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FuncExpressionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/FuncExpressionDTO.java@@ -33,24 +33,32 @@ public class FuncExpressionDTO implements FunctionExpression, FunctionArg {this.functionArgs = functionArgs;}- /** @return The function arguments. */+ /**+ * @return The function arguments.+ */public FunctionArg[] args() {return functionArgs;}- /** @return The function name. */+ /**+ * @return The function name.+ */@Overridepublic String functionName() {return functionName;}- /** @return The function arguments. */+ /**+ * @return The function arguments.+ */@Overridepublic Expression[] arguments() {return functionArgs;}- /** @return The type of the function argument. */+ /**+ * @return The type of the function argument.+ */@Overridepublic ArgType argType() {return ArgType.FUNCTION;@@ -96,7 +104,9 @@ public class FuncExpressionDTO implements FunctionExpression, FunctionArg {}}- /** @return the builder for creating a new instance of FuncExpressionDTO. */+ /**+ * @return the builder for creating a new instance of FuncExpressionDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.javaindex ae74430e20..0b5c33e466 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java@@ -38,19 +38,25 @@ public class LiteralDTO implements Literal<String>, FunctionArg {this.dataType = dataType;}- /** @return The value of the literal. */+ /**+ * @return The value of the literal.+ */@Overridepublic String value() {return value;}- /** @return The data type of the literal. */+ /**+ * @return The data type of the literal.+ */@Overridepublic Type dataType() {return dataType;}- /** @return The type of the argument. */+ /**+ * @return The type of the argument.+ */@Overridepublic ArgType argType() {return ArgType.LITERAL;@@ -101,7 +107,9 @@ public class LiteralDTO implements Literal<String>, FunctionArg {}}- /** @return the builder for creating a new instance of LiteralDTO. */+ /**+ * @return the builder for creating a new instance of LiteralDTO.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/UnparsedExpressionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/UnparsedExpressionDTO.javaindex 24f6ccdebc..e7351404ae 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/UnparsedExpressionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/UnparsedExpressionDTO.java@@ -31,13 +31,17 @@ public class UnparsedExpressionDTO implements UnparsedExpression, FunctionArg {this.unparsedExpression = unparsedExpression;}- /** @return The value of the unparsed expression. */+ /**+ * @return The value of the unparsed expression.+ */@Overridepublic String unparsedExpression() {return unparsedExpression;}- /** @return The type of the function argument. */+ /**+ * @return The type of the function argument.+ */@Overridepublic ArgType argType() {return ArgType.UNPARSED;@@ -48,7 +52,9 @@ public class UnparsedExpressionDTO implements UnparsedExpression, FunctionArg {return "UnparsedExpressionDTO{" + "unparsedExpression='" + unparsedExpression + '\'' + '}';}- /** @return A builder instance for {@link UnparsedExpressionDTO}. */+ /**+ * @return A builder instance for {@link UnparsedExpressionDTO}.+ */public static Builder builder() {return new Builder();}diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/indexes/IndexDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/indexes/IndexDTO.javaindex 0b95f4a91a..f165e59f92 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/indexes/IndexDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/indexes/IndexDTO.java@@ -55,19 +55,25 @@ public class IndexDTO implements Index {this.fieldNames = fieldNames;}- /** @return The type of the index. */+ /**+ * @return The type of the index.+ */@Overridepublic IndexType type() {return indexType;}- /** @return The name of the index. */+ /**+ * @return The name of the index.+ */@Overridepublic String name() {return name;}- /** @return The field name under the table contained in the index. */+ /**+ * @return The field name under the table contained in the index.+ */@Overridepublic String[][] fieldNames() {return fieldNames;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/BucketPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/BucketPartitioningDTO.javaindex 2dc8795d9a..1fed26fdf0 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/BucketPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/BucketPartitioningDTO.java@@ -67,7 +67,9 @@ public final class BucketPartitioningDTO implements Partitioning {return fieldNames;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.BUCKET;@@ -85,13 +87,17 @@ public final class BucketPartitioningDTO implements Partitioning {.forEach(fieldName -> PartitionUtils.validateFieldExistence(columns, fieldName));}- /** @return The name of the partitioning strategy. */+ /**+ * @return The name of the partitioning strategy.+ */@Overridepublic String name() {return strategy().name().toLowerCase();}- /** @return The arguments of the partitioning strategy. */+ /**+ * @return The arguments of the partitioning strategy.+ */@Overridepublic Expression[] arguments() {return bucket(numBuckets, fieldNames).arguments();diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/DayPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/DayPartitioningDTO.javaindex 5e3db30eff..37dcf88929 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/DayPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/DayPartitioningDTO.java@@ -42,7 +42,9 @@ public final class DayPartitioningDTO extends Partitioning.SingleFieldPartitionithis.fieldName = fieldName;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.DAY;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/HourPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/HourPartitioningDTO.javaindex 72c9f204e4..6435af4d07 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/HourPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/HourPartitioningDTO.java@@ -40,7 +40,9 @@ public final class HourPartitioningDTO extends Partitioning.SingleFieldPartitionthis.fieldName = fieldName;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.HOUR;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/IdentityPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/IdentityPartitioningDTO.javaindex cad638c3b9..5db9764576 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/IdentityPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/IdentityPartitioningDTO.java@@ -42,7 +42,9 @@ public final class IdentityPartitioningDTO extends Partitioning.SingleFieldPartithis.fieldName = fieldName;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.IDENTITY;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/ListPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/ListPartitioningDTO.javaindex 74f3e9d460..7f8aacac59 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/ListPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/ListPartitioningDTO.java@@ -59,7 +59,9 @@ public final class ListPartitioningDTO implements Partitioning {this.assignments = assignments;}- /** @return The names of the fields to partition. */+ /**+ * @return The names of the fields to partition.+ */public String[][] fieldNames() {return fieldNames;}@@ -69,7 +71,9 @@ public final class ListPartitioningDTO implements Partitioning {return assignments;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.LIST;@@ -87,13 +91,17 @@ public final class ListPartitioningDTO implements Partitioning {.forEach(fieldName -> PartitionUtils.validateFieldExistence(columns, fieldName));}- /** @return The name of the partitioning strategy. */+ /**+ * @return The name of the partitioning strategy.+ */@Overridepublic String name() {return strategy().name().toLowerCase();}- /** @return The arguments of the partitioning strategy. */+ /**+ * @return The arguments of the partitioning strategy.+ */@Overridepublic Expression[] arguments() {return Arrays.stream(fieldNames).map(NamedReference::field).toArray(Expression[]::new);diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/MonthPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/MonthPartitioningDTO.javaindex 8dacc485d2..333714b2f0 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/MonthPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/MonthPartitioningDTO.java@@ -43,7 +43,9 @@ public final class MonthPartitioningDTO extends Partitioning.SingleFieldPartitiothis.fieldName = fieldName;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.MONTH;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.javaindex a6594c1caf..a18b984df6 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/Partitioning.java@@ -105,7 +105,9 @@ public interface Partitioning extends Transform {abstract class SingleFieldPartitioning implements Partitioning {String[] fieldName;- /** @return The field name of the partitioning. */+ /**+ * @return The field name of the partitioning.+ */public String[] fieldName() {return fieldName;}@@ -121,13 +123,17 @@ public interface Partitioning extends Transform {PartitionUtils.validateFieldExistence(columns, fieldName);}- /** @return The name of the partitioning strategy. */+ /**+ * @return The name of the partitioning strategy.+ */@Overridepublic String name() {return strategy().name().toLowerCase();}- /** @return The arguments of the partitioning strategy. */+ /**+ * @return The arguments of the partitioning strategy.+ */@Overridepublic Expression[] arguments() {return new Expression[] {field(fieldName)};diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/RangePartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/RangePartitioningDTO.javaindex 92680ab79f..97eef3ec14 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/RangePartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/RangePartitioningDTO.java@@ -59,12 +59,16 @@ public final class RangePartitioningDTO implements Partitioning {this.assignments = assignments;}- /** @return The name of the field to partition. */+ /**+ * @return The name of the field to partition.+ */public String[] fieldName() {return fieldName;}- /** @return The name of the partitioning strategy. */+ /**+ * @return The name of the partitioning strategy.+ */@Overridepublic String name() {return strategy().name().toLowerCase();@@ -75,13 +79,17 @@ public final class RangePartitioningDTO implements Partitioning {return assignments;}- /** @return The arguments of the partitioning. */+ /**+ * @return The arguments of the partitioning.+ */@Overridepublic Expression[] arguments() {return new Expression[] {field(fieldName)};}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.RANGE;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/TruncatePartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/TruncatePartitioningDTO.javaindex f15ecb836f..97e81960c9 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/TruncatePartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/TruncatePartitioningDTO.java@@ -48,29 +48,39 @@ public final class TruncatePartitioningDTO implements Partitioning {this.fieldName = fieldName;}- /** @return The width of the partitioning. */+ /**+ * @return The width of the partitioning.+ */public int width() {return width;}- /** @return The name of the field to partition. */+ /**+ * @return The name of the field to partition.+ */public String[] fieldName() {return fieldName;}- /** @return The name of the partitioning strategy. */+ /**+ * @return The name of the partitioning strategy.+ */@Overridepublic String name() {return strategy().name().toLowerCase();}- /** @return The arguments of the partitioning. */+ /**+ * @return The arguments of the partitioning.+ */@Overridepublic Expression[] arguments() {return truncate(width, fieldName).arguments();}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.TRUNCATE;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/YearPartitioningDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/YearPartitioningDTO.javaindex 1cccf3af25..195bd391b2 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/YearPartitioningDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitioning/YearPartitioningDTO.java@@ -40,7 +40,9 @@ public final class YearPartitioningDTO extends Partitioning.SingleFieldPartitionthis.fieldName = fieldName;}- /** @return The strategy of the partitioning. */+ /**+ * @return The strategy of the partitioning.+ */@Overridepublic Strategy strategy() {return Strategy.YEAR;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/IdentityPartitionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/IdentityPartitionDTO.javaindex 424045a431..6a65113a14 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/IdentityPartitionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/IdentityPartitionDTO.java@@ -32,7 +32,9 @@ public class IdentityPartitionDTO implements PartitionDTO, IdentityPartition {private final LiteralDTO[] values;private final Map<String, String> properties;- /** @return A builder instance for {@link IdentityPartitionDTO}. */+ /**+ * @return A builder instance for {@link IdentityPartitionDTO}.+ */public static Builder builder() {return new Builder();}@@ -49,31 +51,41 @@ public class IdentityPartitionDTO implements PartitionDTO, IdentityPartition {this.properties = properties;}- /** @return The name of the partition. */+ /**+ * @return The name of the partition.+ */@Overridepublic String name() {return name;}- /** @return The field names. */+ /**+ * @return The field names.+ */@Overridepublic String[][] fieldNames() {return fieldNames;}- /** @return The values. */+ /**+ * @return The values.+ */@Overridepublic LiteralDTO[] values() {return values;}- /** @return The properties. */+ /**+ * @return The properties.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The type of the partition. */+ /**+ * @return The type of the partition.+ */@Overridepublic Type type() {return Type.IDENTITY;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/ListPartitionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/ListPartitionDTO.javaindex f36ea1fa14..8af6af2b0c 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/ListPartitionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/ListPartitionDTO.java@@ -34,7 +34,9 @@ public class ListPartitionDTO implements PartitionDTO, ListPartition {private final LiteralDTO[][] lists;private final Map<String, String> properties;- /** @return The builder for ListPartitionDTO. */+ /**+ * @return The builder for ListPartitionDTO.+ */public static Builder builder() {return new Builder();}@@ -49,25 +51,33 @@ public class ListPartitionDTO implements PartitionDTO, ListPartition {this.properties = properties;}- /** @return The name of the partition. */+ /**+ * @return The name of the partition.+ */@Overridepublic String name() {return name;}- /** @return The lists of the partition. */+ /**+ * @return The lists of the partition.+ */@Overridepublic LiteralDTO[][] lists() {return lists;}- /** @return The properties of the partition. */+ /**+ * @return The properties of the partition.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The type of the partition. */+ /**+ * @return The type of the partition.+ */@Overridepublic Type type() {return Type.LIST;diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/PartitionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/PartitionDTO.javaindex 57f940ed8b..72c1ba7921 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/PartitionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/PartitionDTO.java@@ -29,7 +29,9 @@ import org.apache.gravitino.rel.partitions.Partition;@JsonDeserialize(using = PartitionDTODeserializer.class)public interface PartitionDTO extends Partition {- /** @return The type of the partition. */+ /**+ * @return The type of the partition.+ */Type type();/** Type of the partition. */diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/RangePartitionDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/RangePartitionDTO.javaindex 95750d7845..156c487ac9 100644--- a/common/src/main/java/org/apache/gravitino/dto/rel/partitions/RangePartitionDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/rel/partitions/RangePartitionDTO.java@@ -31,7 +31,9 @@ public class RangePartitionDTO implements PartitionDTO, RangePartition {private final LiteralDTO upper;private final LiteralDTO lower;- /** @return A builder instance for {@link RangePartitionDTO}. */+ /**+ * @return A builder instance for {@link RangePartitionDTO}.+ */public static Builder builder() {return new Builder();}@@ -48,25 +50,33 @@ public class RangePartitionDTO implements PartitionDTO, RangePartition {this.lower = lower;}- /** @return The name of the partition. */+ /**+ * @return The name of the partition.+ */@Overridepublic String name() {return name;}- /** @return The upper bound. */+ /**+ * @return The upper bound.+ */@Overridepublic LiteralDTO upper() {return upper;}- /** @return The lower bound. */+ /**+ * @return The lower bound.+ */@Overridepublic LiteralDTO lower() {return lower;}- /** @return The properties. */+ /**+ * @return The properties.+ */@Overridepublic Map<String, String> properties() {return properties;@@ -92,7 +102,9 @@ public class RangePartitionDTO implements PartitionDTO, RangePartition {return Objects.hash(name, properties, upper, lower);}- /** @return The type of the partition. */+ /**+ * @return The type of the partition.+ */@Overridepublic Type type() {return Type.RANGE;@@ -149,7 +161,9 @@ public class RangePartitionDTO implements PartitionDTO, RangePartition {return this;}- /** @return The range partition instance. */+ /**+ * @return The range partition instance.+ */public RangePartitionDTO build() {return new RangePartitionDTO(name, properties, upper, lower);}diff --git a/common/src/main/java/org/apache/gravitino/dto/requests/FilesetUpdateRequest.java b/common/src/main/java/org/apache/gravitino/dto/requests/FilesetUpdateRequest.javaindex 82915dcdc1..eddd7fff69 100644--- a/common/src/main/java/org/apache/gravitino/dto/requests/FilesetUpdateRequest.java+++ b/common/src/main/java/org/apache/gravitino/dto/requests/FilesetUpdateRequest.java@@ -103,7 +103,9 @@ public interface FilesetUpdateRequest extends RESTRequest {@JsonProperty("newComment")private final String newComment;- /** @return The fileset change. */+ /**+ * @return The fileset change.+ */@Overridepublic FilesetChange filesetChange() {return FilesetChange.updateComment(newComment);@@ -129,7 +131,9 @@ public interface FilesetUpdateRequest extends RESTRequest {@JsonProperty("value")private final String value;- /** @return The fileset change. */+ /**+ * @return The fileset change.+ */@Overridepublic FilesetChange filesetChange() {return FilesetChange.setProperty(property, value);@@ -159,7 +163,9 @@ public interface FilesetUpdateRequest extends RESTRequest {@JsonProperty("property")private final String property;- /** @return The fileset change. */+ /**+ * @return The fileset change.+ */@Overridepublic FilesetChange filesetChange() {return FilesetChange.removeProperty(property);@@ -183,7 +189,9 @@ public interface FilesetUpdateRequest extends RESTRequest {@ToStringclass RemoveFilesetCommentRequest implements FilesetUpdateRequest {- /** @return The fileset change. */+ /**+ * @return The fileset change.+ */@Overridepublic FilesetChange filesetChange() {return FilesetChange.updateComment(null);diff --git a/common/src/main/java/org/apache/gravitino/dto/requests/TableUpdateRequest.java b/common/src/main/java/org/apache/gravitino/dto/requests/TableUpdateRequest.javaindex c1f7acd4a4..4a1ce39934 100644--- a/common/src/main/java/org/apache/gravitino/dto/requests/TableUpdateRequest.java+++ b/common/src/main/java/org/apache/gravitino/dto/requests/TableUpdateRequest.java@@ -280,7 +280,9 @@ public interface TableUpdateRequest extends RESTRequest {StringUtils.isNotBlank(property), "\"property\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.removeProperty(property);@@ -402,7 +404,9 @@ public interface TableUpdateRequest extends RESTRequest {dataType != null, "\"type\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.addColumn(@@ -456,7 +460,9 @@ public interface TableUpdateRequest extends RESTRequest {"\"newFieldName\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.renameColumn(oldFieldName, newFieldName);@@ -511,7 +517,9 @@ public interface TableUpdateRequest extends RESTRequest {"\"newDefaultValue\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.updateColumnDefaultValue(fieldName, newDefaultValue);@@ -565,7 +573,9 @@ public interface TableUpdateRequest extends RESTRequest {newType != null, "\"newType\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.updateColumnType(fieldName, newType);@@ -618,7 +628,9 @@ public interface TableUpdateRequest extends RESTRequest {"\"newComment\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.updateColumnComment(fieldName, newComment);@@ -673,7 +685,9 @@ public interface TableUpdateRequest extends RESTRequest {newPosition != null, "\"newPosition\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.updateColumnPosition(fieldName, newPosition);@@ -777,7 +791,9 @@ public interface TableUpdateRequest extends RESTRequest {"\"fieldName\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.deleteColumn(fieldName, ifExists);@@ -822,7 +838,9 @@ public interface TableUpdateRequest extends RESTRequest {"The index must be set with corresponding column names");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.addIndex(index.type(), index.name(), index.fieldNames());@@ -864,7 +882,9 @@ public interface TableUpdateRequest extends RESTRequest {Preconditions.checkNotNull(name, "Index name cannot be null");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.deleteIndex(name, ifExists);@@ -914,7 +934,9 @@ public interface TableUpdateRequest extends RESTRequest {"\"fieldName\" field is required and cannot be empty");}- /** @return An instance of TableChange. */+ /**+ * @return An instance of TableChange.+ */@Overridepublic TableChange tableChange() {return TableChange.updateColumnAutoIncrement(fieldName, autoIncrement);diff --git a/common/src/main/java/org/apache/gravitino/dto/requests/TopicUpdateRequest.java b/common/src/main/java/org/apache/gravitino/dto/requests/TopicUpdateRequest.javaindex add5ae7e99..c570156a9d 100644--- a/common/src/main/java/org/apache/gravitino/dto/requests/TopicUpdateRequest.java+++ b/common/src/main/java/org/apache/gravitino/dto/requests/TopicUpdateRequest.java@@ -46,7 +46,9 @@ import org.apache.gravitino.rest.RESTRequest;})public interface TopicUpdateRequest extends RESTRequest {- /** @return The topic change. */+ /**+ * @return The topic change.+ */TopicChange topicChange();/** Represents a request to update the comment of a topic. */@@ -172,7 +174,9 @@ public interface TopicUpdateRequest extends RESTRequest {StringUtils.isNotBlank(property), "\"property\" field is required and cannot be empty");}- /** @return An instance of TopicChange. */+ /**+ * @return An instance of TopicChange.+ */@Overridepublic TopicChange topicChange() {return TopicChange.removeProperty(property);diff --git a/common/src/main/java/org/apache/gravitino/dto/responses/PartitionNameListResponse.java b/common/src/main/java/org/apache/gravitino/dto/responses/PartitionNameListResponse.javaindex 36b49c4e8d..be6e001456 100644--- a/common/src/main/java/org/apache/gravitino/dto/responses/PartitionNameListResponse.java+++ b/common/src/main/java/org/apache/gravitino/dto/responses/PartitionNameListResponse.java@@ -46,7 +46,9 @@ public class PartitionNameListResponse extends BaseResponse {this.partitionNames = null;}- /** @return The array of partition names. */+ /**+ * @return The array of partition names.+ */public String[] partitionNames() {return partitionNames;}diff --git a/common/src/main/java/org/apache/gravitino/dto/tag/MetadataObjectDTO.java b/common/src/main/java/org/apache/gravitino/dto/tag/MetadataObjectDTO.javaindex d09815b9e2..39a87f608c 100644--- a/common/src/main/java/org/apache/gravitino/dto/tag/MetadataObjectDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/tag/MetadataObjectDTO.java@@ -50,7 +50,9 @@ public class MetadataObjectDTO implements MetadataObject {return type;}- /** @return The full name of the metadata object. */+ /**+ * @return The full name of the metadata object.+ */@JsonProperty("fullName")public String getFullName() {return fullName();@@ -73,7 +75,9 @@ public class MetadataObjectDTO implements MetadataObject {}}- /** @return a new builder for constructing a Metadata Object DTO. */+ /**+ * @return a new builder for constructing a Metadata Object DTO.+ */public static Builder builder() {return new Builder();}@@ -116,7 +120,9 @@ public class MetadataObjectDTO implements MetadataObject {return this;}- /** @return The constructed Metadata Object DTO. */+ /**+ * @return The constructed Metadata Object DTO.+ */public MetadataObjectDTO build() {return metadataObjectDTO;}diff --git a/common/src/main/java/org/apache/gravitino/dto/tag/TagDTO.java b/common/src/main/java/org/apache/gravitino/dto/tag/TagDTO.javaindex 83c1573f7d..d0e8fb6eee 100644--- a/common/src/main/java/org/apache/gravitino/dto/tag/TagDTO.java+++ b/common/src/main/java/org/apache/gravitino/dto/tag/TagDTO.java@@ -91,7 +91,9 @@ public class TagDTO implements Tag {return Objects.hashCode(name, comment, properties, audit);}- /** @return a new builder for constructing a Tag DTO. */+ /**+ * @return a new builder for constructing a Tag DTO.+ */public static Builder builder() {return new Builder();}@@ -159,7 +161,9 @@ public class TagDTO implements Tag {return this;}- /** @return The constructed Tag DTO. */+ /**+ * @return The constructed Tag DTO.+ */public TagDTO build() {return tagDTO;}diff --git a/common/src/main/java/org/apache/gravitino/file/FileInfo.java b/common/src/main/java/org/apache/gravitino/file/FileInfo.javaindex 9e15b2cad7..cd19b1fa08 100644--- a/common/src/main/java/org/apache/gravitino/file/FileInfo.java+++ b/common/src/main/java/org/apache/gravitino/file/FileInfo.java@@ -27,18 +27,28 @@ package org.apache.gravitino.file;*/public interface FileInfo {- /** @return The filename or directory name of file object. */+ /**+ * @return The filename or directory name of file object.+ */String name();- /** @return Whether this is a directory (true). */+ /**+ * @return Whether this is a directory (true).+ */boolean isDir();- /** @return The file size in bytes (0 if directory). */+ /**+ * @return The file size in bytes (0 if directory).+ */long size();- /** @return The last modification time as an Instant. */+ /**+ * @return The last modification time as an Instant.+ */long lastModified();- /** @return The full path of the file or directory within the fileset. */+ /**+ * @return The full path of the file or directory within the fileset.+ */String path();}diff --git a/core/src/main/java/org/apache/gravitino/audit/AuditLogWriter.java b/core/src/main/java/org/apache/gravitino/audit/AuditLogWriter.javaindex edc796da81..08870f92e6 100644--- a/core/src/main/java/org/apache/gravitino/audit/AuditLogWriter.java+++ b/core/src/main/java/org/apache/gravitino/audit/AuditLogWriter.java@@ -29,7 +29,9 @@ import org.apache.gravitino.listener.api.event.Event;*/public interface AuditLogWriter extends Closeable {- /** @return formatter. */+ /**+ * @return formatter.+ */Formatter getFormatter();/**diff --git a/core/src/main/java/org/apache/gravitino/authorization/FutureGrantManager.java b/core/src/main/java/org/apache/gravitino/authorization/FutureGrantManager.javaindex 99fe336976..b6aee4b1c8 100644--- a/core/src/main/java/org/apache/gravitino/authorization/FutureGrantManager.java+++ b/core/src/main/java/org/apache/gravitino/authorization/FutureGrantManager.java@@ -71,7 +71,8 @@ public class FutureGrantManager {Map<UserEntity, Set<RoleEntity>> userGrantRoles = Maps.newHashMap();Map<GroupEntity, Set<RoleEntity>> groupGrantRoles = Maps.newHashMap();List<RoleEntity> roles =- entityStore.relationOperations()+ entityStore+ .relationOperations().listEntitiesByRelation(SupportsRelationOperations.Type.METADATA_OBJECT_ROLE_REL,NameIdentifier.of(metalake),@@ -95,7 +96,8 @@ public class FutureGrantManager {}List<UserEntity> users =- entityStore.relationOperations()+ entityStore+ .relationOperations().listEntitiesByRelation(SupportsRelationOperations.Type.ROLE_USER_REL,role.nameIdentifier(),@@ -110,7 +112,8 @@ public class FutureGrantManager {}List<GroupEntity> groups =- entityStore.relationOperations()+ entityStore+ .relationOperations().listEntitiesByRelation(SupportsRelationOperations.Type.ROLE_GROUP_REL,role.nameIdentifier(),diff --git a/core/src/main/java/org/apache/gravitino/authorization/RoleManager.java b/core/src/main/java/org/apache/gravitino/authorization/RoleManager.javaindex 16e1cdda37..7ca615c290 100644--- a/core/src/main/java/org/apache/gravitino/authorization/RoleManager.java+++ b/core/src/main/java/org/apache/gravitino/authorization/RoleManager.java@@ -154,7 +154,8 @@ class RoleManager {try {checkMetalake(NameIdentifier.of(metalake), store);- return store.relationOperations()+ return store+ .relationOperations().listEntitiesByRelation(SupportsRelationOperations.Type.METADATA_OBJECT_ROLE_REL,MetadataObjectUtil.toEntityIdent(metalake, object),diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseColumn.java b/core/src/main/java/org/apache/gravitino/connector/BaseColumn.javaindex 2c9520f78a..ec1d7d6547 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseColumn.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseColumn.java@@ -82,7 +82,9 @@ public abstract class BaseColumn implements Column {return nullable;}- /** @return True if this column is an auto-increment column. Default is false. */+ /**+ * @return True if this column is an auto-increment column. Default is false.+ */@Overridepublic boolean autoIncrement() {return autoIncrement;diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseFileset.java b/core/src/main/java/org/apache/gravitino/connector/BaseFileset.javaindex 636c5b5fde..86c49613f3 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseFileset.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseFileset.java@@ -45,38 +45,50 @@ public abstract class BaseFileset implements Fileset {protected AuditInfo auditInfo;- /** @return The name of the fileset. */+ /**+ * @return The name of the fileset.+ */@Overridepublic String name() {return name;}- /** @return The comment or description for the fileset. */+ /**+ * @return The comment or description for the fileset.+ */@Nullable@Overridepublic String comment() {return comment;}- /** @return The {@link Type} of the fileset. */+ /**+ * @return The {@link Type} of the fileset.+ */@Overridepublic Type type() {return type;}- /** @return The storage locations of the fileset. */+ /**+ * @return The storage locations of the fileset.+ */@Overridepublic Map<String, String> storageLocations() {return storageLocations;}- /** @return The audit information for the fileset. */+ /**+ * @return The audit information for the fileset.+ */@Overridepublic AuditInfo auditInfo() {return auditInfo;}- /** @return The associated properties of the fileset. */+ /**+ * @return The associated properties of the fileset.+ */@Nullable@Overridepublic Map<String, String> properties() {diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseModel.java b/core/src/main/java/org/apache/gravitino/connector/BaseModel.javaindex 4777af2561..7ea17df9e0 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseModel.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseModel.java@@ -38,33 +38,43 @@ public abstract class BaseModel implements Model {protected AuditInfo auditInfo;- /** @return The name of the model. */+ /**+ * @return The name of the model.+ */@Overridepublic String name() {return name;}- /** @return The comment of the model. */+ /**+ * @return The comment of the model.+ */@Nullable@Overridepublic String comment() {return comment;}- /** @return The properties of the model. */+ /**+ * @return The properties of the model.+ */@Nullable@Overridepublic Map<String, String> properties() {return properties;}- /** @return The latest version of the model. */+ /**+ * @return The latest version of the model.+ */@Overridepublic int latestVersion() {return latestVersion;}- /** @return The audit information of the model. */+ /**+ * @return The audit information of the model.+ */@Overridepublic AuditInfo auditInfo() {return auditInfo;diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseModelVersion.java b/core/src/main/java/org/apache/gravitino/connector/BaseModelVersion.javaindex 049baadf1a..a7c8a1ab83 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseModelVersion.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseModelVersion.java@@ -40,37 +40,49 @@ public abstract class BaseModelVersion implements ModelVersion {protected AuditInfo auditInfo;- /** @return the version of the model object. */+ /**+ * @return the version of the model object.+ */@Overridepublic int version() {return version;}- /** @return the aliases of the model version. */+ /**+ * @return the aliases of the model version.+ */@Overridepublic String[] aliases() {return aliases;}- /** @return the comment of the model version. */+ /**+ * @return the comment of the model version.+ */@Overridepublic String comment() {return comment;}- /** @return the URIs of the model artifact. */+ /**+ * @return the URIs of the model artifact.+ */@Overridepublic Map<String, String> uris() {return uris;}- /** @return the properties of the model version. */+ /**+ * @return the properties of the model version.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return the audit details of the model version. */+ /**+ * @return the audit details of the model version.+ */@Overridepublic AuditInfo auditInfo() {return auditInfo;diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseTable.java b/core/src/main/java/org/apache/gravitino/connector/BaseTable.javaindex 17b2f645ac..4102a43e9e 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseTable.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseTable.java@@ -85,56 +85,74 @@ public abstract class BaseTable implements Table {return ops;}- /** @return the audit details of the table. */+ /**+ * @return the audit details of the table.+ */@Overridepublic AuditInfo auditInfo() {return auditInfo;}- /** @return the name of the table. */+ /**+ * @return the name of the table.+ */@Overridepublic String name() {return name;}- /** @return an array of columns that make up the table. */+ /**+ * @return an array of columns that make up the table.+ */@Overridepublic Column[] columns() {return columns;}- /** @return the comment or description for the table. */+ /**+ * @return the comment or description for the table.+ */@Nullable@Overridepublic String comment() {return comment;}- /** @return the associated properties of the table. */+ /**+ * @return the associated properties of the table.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return the partitioning strategies of the table. */+ /**+ * @return the partitioning strategies of the table.+ */@Overridepublic Transform[] partitioning() {return partitioning;}- /** @return the array of {@link SortOrder} of the table. */+ /**+ * @return the array of {@link SortOrder} of the table.+ */@Overridepublic SortOrder[] sortOrder() {return sortOrders;}- /** @return The distribution strategy of the table. */+ /**+ * @return The distribution strategy of the table.+ */@Overridepublic Distribution distribution() {return distribution;}- /** @return The indexes associated with the table. */+ /**+ * @return The indexes associated with the table.+ */@Overridepublic Index[] index() {return indexes;diff --git a/core/src/main/java/org/apache/gravitino/connector/BaseTopic.java b/core/src/main/java/org/apache/gravitino/connector/BaseTopic.javaindex 3fcc844db5..64bc316dca 100644--- a/core/src/main/java/org/apache/gravitino/connector/BaseTopic.java+++ b/core/src/main/java/org/apache/gravitino/connector/BaseTopic.java@@ -37,26 +37,34 @@ public abstract class BaseTopic implements Topic {protected Audit auditInfo;- /** @return The name of the topic. */+ /**+ * @return The name of the topic.+ */@Overridepublic String name() {return name;}- /** @return The comment or description for the topic. */+ /**+ * @return The comment or description for the topic.+ */@Nullable@Overridepublic String comment() {return comment;}- /** @return The associated properties of the topic. */+ /**+ * @return The associated properties of the topic.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The audit information for the topic. */+ /**+ * @return The audit information for the topic.+ */@Overridepublic Audit auditInfo() {return auditInfo;diff --git a/core/src/main/java/org/apache/gravitino/connector/CatalogInfo.java b/core/src/main/java/org/apache/gravitino/connector/CatalogInfo.javaindex 6cc74dde4a..aae36705fe 100644--- a/core/src/main/java/org/apache/gravitino/connector/CatalogInfo.java+++ b/core/src/main/java/org/apache/gravitino/connector/CatalogInfo.java@@ -70,48 +70,64 @@ public final class CatalogInfo implements Catalog {this.namespace = namespace;}- /** @return The unique id of the catalog. */+ /**+ * @return The unique id of the catalog.+ */public Long id() {return id;}- /** @return The name of the catalog. */+ /**+ * @return The name of the catalog.+ */@Overridepublic String name() {return name;}- /** @return The type of the catalog. */+ /**+ * @return The type of the catalog.+ */@Overridepublic Catalog.Type type() {return type;}- /** @return The provider of the catalog. */+ /**+ * @return The provider of the catalog.+ */@Overridepublic String provider() {return provider;}- /** @return The comment or description for the catalog. */+ /**+ * @return The comment or description for the catalog.+ */@Overridepublic String comment() {return comment;}- /** @return The associated properties of the catalog. */+ /**+ * @return The associated properties of the catalog.+ */@Overridepublic Map<String, String> properties() {return properties;}- /** @return The audit details of the catalog. */+ /**+ * @return The audit details of the catalog.+ */@Overridepublic Audit auditInfo() {return auditInfo;}- /** @return The namespace of the catalog. */+ /**+ * @return The namespace of the catalog.+ */public Namespace namespace() {return namespace;}diff --git a/core/src/main/java/org/apache/gravitino/connector/PropertiesMetadata.java b/core/src/main/java/org/apache/gravitino/connector/PropertiesMetadata.javaindex 196fbb53aa..d888fe6719 100644--- a/core/src/main/java/org/apache/gravitino/connector/PropertiesMetadata.java+++ b/core/src/main/java/org/apache/gravitino/connector/PropertiesMetadata.java@@ -27,7 +27,9 @@ import org.apache.gravitino.annotation.Evolving;@Evolvingpublic interface PropertiesMetadata {- /** @return the defined property entries for the entity. */+ /**+ * @return the defined property entries for the entity.+ */Map<String, PropertyEntry<?>> propertyEntries();/**diff --git a/core/src/main/java/org/apache/gravitino/connector/ProxyPlugin.java b/core/src/main/java/org/apache/gravitino/connector/ProxyPlugin.javaindex f4a145fbfb..6e58d70f45 100644--- a/core/src/main/java/org/apache/gravitino/connector/ProxyPlugin.java+++ b/core/src/main/java/org/apache/gravitino/connector/ProxyPlugin.java@@ -38,6 +38,8 @@ public interface ProxyPlugin {Principal principal, Executable<Object, Exception> action, Map<String, String> properties)throws Throwable;- /** @param ops The catalog operation is bind to plugin. */+ /**+ * @param ops The catalog operation is bind to plugin.+ */void bindCatalogOperation(CatalogOperations ops);}diff --git a/core/src/main/java/org/apache/gravitino/listener/api/info/Either.java b/core/src/main/java/org/apache/gravitino/listener/api/info/Either.javaindex 4972ca4c37..f03b997b44 100644--- a/core/src/main/java/org/apache/gravitino/listener/api/info/Either.java+++ b/core/src/main/java/org/apache/gravitino/listener/api/info/Either.java@@ -108,12 +108,16 @@ public final class Either<L, R> {return new Either<>(Optional.empty(), Optional.of(value));}- /** @return the left value */+ /**+ * @return the left value+ */public Optional<L> left() {return left;}- /** @return the right value */+ /**+ * @return the right value+ */public Optional<R> right() {return right;}diff --git a/core/src/main/java/org/apache/gravitino/listener/api/info/FilesetInfo.java b/core/src/main/java/org/apache/gravitino/listener/api/info/FilesetInfo.javaindex d6897bc7ec..40dc03b66b 100644--- a/core/src/main/java/org/apache/gravitino/listener/api/info/FilesetInfo.java+++ b/core/src/main/java/org/apache/gravitino/listener/api/info/FilesetInfo.java@@ -144,7 +144,9 @@ public final class FilesetInfo {return storageLocations.get(LOCATION_NAME_UNKNOWN);}- /** @return The storage locations of the fileset. */+ /**+ * @return The storage locations of the fileset.+ */public Map<String, String> storageLocations() {return storageLocations;}diff --git a/core/src/main/java/org/apache/gravitino/meta/FilesetEntity.java b/core/src/main/java/org/apache/gravitino/meta/FilesetEntity.javaindex ccd80242a0..c89a64f8c1 100644--- a/core/src/main/java/org/apache/gravitino/meta/FilesetEntity.java+++ b/core/src/main/java/org/apache/gravitino/meta/FilesetEntity.java@@ -158,12 +158,16 @@ public class FilesetEntity implements Entity, Auditable, HasIdentifier {return type;}- /** @return The unnamed storage location of the fileset entity. */+ /**+ * @return The unnamed storage location of the fileset entity.+ */public String storageLocation() {return storageLocations.get(LOCATION_NAME_UNKNOWN);}- /** @return The storage locations of this fileset entity. */+ /**+ * @return The storage locations of this fileset entity.+ */public Map<String, String> storageLocations() {return storageLocations;}diff --git a/core/src/main/java/org/apache/gravitino/meta/RoleEntity.java b/core/src/main/java/org/apache/gravitino/meta/RoleEntity.javaindex c69df41eae..6bde0291ec 100644--- a/core/src/main/java/org/apache/gravitino/meta/RoleEntity.java+++ b/core/src/main/java/org/apache/gravitino/meta/RoleEntity.java@@ -67,7 +67,9 @@ public class RoleEntity implements Role, Entity, Auditable, HasIdentifier {return name;}- /** @return The audit information of the entity. */+ /**+ * @return The audit information of the entity.+ */@Overridepublic AuditInfo auditInfo() {return auditInfo;diff --git a/core/src/main/java/org/apache/gravitino/policy/PolicyManager.java b/core/src/main/java/org/apache/gravitino/policy/PolicyManager.javaindex 9fb1878f81..14deabbb48 100644--- a/core/src/main/java/org/apache/gravitino/policy/PolicyManager.java+++ b/core/src/main/java/org/apache/gravitino/policy/PolicyManager.java@@ -266,7 +266,8 @@ public class PolicyManager implements PolicyDispatcher {LockType.READ,() -> {try {- return entityStore.relationOperations()+ return entityStore+ .relationOperations().listEntitiesByRelation(SupportsRelationOperations.Type.POLICY_METADATA_OBJECT_REL,entityIdent,diff --git a/core/src/main/java/org/apache/gravitino/stats/StatisticManager.java b/core/src/main/java/org/apache/gravitino/stats/StatisticManager.javaindex 1741bc20dd..8ed1e87e87 100644--- a/core/src/main/java/org/apache/gravitino/stats/StatisticManager.java+++ b/core/src/main/java/org/apache/gravitino/stats/StatisticManager.java@@ -94,7 +94,8 @@ public class StatisticManager implements Closeable {identifier,LockType.READ,() ->- store.list(Namespace.fromString(identifier.toString()), StatisticEntity.class, type)+ store+ .list(Namespace.fromString(identifier.toString()), StatisticEntity.class, type).stream().map(entity -> {diff --git a/flink-connector/flink/src/test/java/org/apache/gravitino/flink/connector/integration/test/FlinkEnvIT.java b/flink-connector/flink/src/test/java/org/apache/gravitino/flink/connector/integration/test/FlinkEnvIT.javaindex e2cdbbd69b..d372eb92af 100644--- a/flink-connector/flink/src/test/java/org/apache/gravitino/flink/connector/integration/test/FlinkEnvIT.java+++ b/flink-connector/flink/src/test/java/org/apache/gravitino/flink/connector/integration/test/FlinkEnvIT.java@@ -100,7 +100,8 @@ public abstract class FlinkEnvIT extends BaseIT {LOG.info("Stop Flink env successfully.");}- protected void initCatalogEnv() throws Exception {};+ protected void initCatalogEnv() throws Exception {}+ ;protected void stopCatalogEnv() throws Exception {}diff --git a/trino-connector/integration-test/src/test/java/org/apache/gravitino/trino/connector/integration/test/TrinoConnectorIT.java b/trino-connector/integration-test/src/test/java/org/apache/gravitino/trino/connector/integration/test/TrinoConnectorIT.javaindex 6e0cfabcc9..10eb37db74 100644--- a/trino-connector/integration-test/src/test/java/org/apache/gravitino/trino/connector/integration/test/TrinoConnectorIT.java+++ b/trino-connector/integration-test/src/test/java/org/apache/gravitino/trino/connector/integration/test/TrinoConnectorIT.java@@ -65,7 +65,9 @@ import org.junit.jupiter.api.Test;import org.slf4j.Logger;import org.slf4j.LoggerFactory;-/** @deprecated */+/**+ * @deprecated+ */@Disabled@Deprecated@Tag("gravitino-docker-test")diff --git a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConfig.java b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConfig.javaindex 3102629903..4361dfb586 100644--- a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConfig.java+++ b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/GravitinoConfig.java@@ -75,7 +75,9 @@ public class GravitinoConfig {private static final ConfigEntry GRAVITINO_METALAKE =new ConfigEntry("gravitino.metalake", "The metalake name for used", "", true);- /** @deprecated Please use {@code gravitino.use-single-metalake} instead. */+ /**+ * @deprecated Please use {@code gravitino.use-single-metalake} instead.+ */@Deprecated@SuppressWarnings("UnusedVariable")private static final ConfigEntry GRAVITINO_SIMPLIFY_CATALOG_NAMES =diff --git a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorAdapter.java b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorAdapter.javaindex 698d0c8d85..cae5a197f7 100644--- a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorAdapter.java+++ b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogConnectorAdapter.java@@ -30,7 +30,9 @@ import org.apache.gravitino.trino.connector.metadata.GravitinoCatalog;*/public interface CatalogConnectorAdapter {- /** @return TableProperties list that used to validate table properties. */+ /**+ * @return TableProperties list that used to validate table properties.+ */default List<PropertyMetadata<?>> getTableProperties() {return emptyList();}@@ -44,18 +46,26 @@ public interface CatalogConnectorAdapter {*/Map<String, String> buildInternalConnectorConfig(GravitinoCatalog catalog) throws Exception;- /** @return Return internal connector name with Trino. */+ /**+ * @return Return internal connector name with Trino.+ */String internalConnectorName();- /** @return SchemaProperties list that used to validate schema properties. */+ /**+ * @return SchemaProperties list that used to validate schema properties.+ */default List<PropertyMetadata<?>> getSchemaProperties() {return emptyList();}- /** @return Return MetadataAdapter for special catalog connector. */+ /**+ * @return Return MetadataAdapter for special catalog connector.+ */CatalogConnectorMetadataAdapter getMetadataAdapter();- /** @return ColumnProperties list that used to validate column properties. */+ /**+ * @return ColumnProperties list that used to validate column properties.+ */default List<PropertyMetadata<?>> getColumnProperties() {return emptyList();}diff --git a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/jdbc/JdbcColumnDefaultValueConverter.java b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/jdbc/JdbcColumnDefaultValueConverter.javaindex abd94b4432..27bf673c3e 100644--- a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/jdbc/JdbcColumnDefaultValueConverter.java+++ b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/jdbc/JdbcColumnDefaultValueConverter.java@@ -65,7 +65,9 @@ public class JdbcColumnDefaultValueConverter {// Not display default value if default value is nullreturn null;} else if (type instanceof Types.TimestampType) {- /** @see LocalDateTime#toString() would return like 'yyyy-MM-ddTHH:mm:ss' */+ /**+ * @see LocalDateTime#toString() would return like 'yyyy-MM-ddTHH:mm:ss'+ */if (literal.value() instanceof String || literal.value() instanceof LocalDateTime) {return literal.value().toString().replace("T", " ");}diff --git a/trino-connector/trino-connector/src/test/java/org/apache/gravitino/trino/connector/GravitinoMockServer.java b/trino-connector/trino-connector/src/test/java/org/apache/gravitino/trino/connector/GravitinoMockServer.javaindex 05172dcc53..b76eea855f 100644--- a/trino-connector/trino-connector/src/test/java/org/apache/gravitino/trino/connector/GravitinoMockServer.java+++ b/trino-connector/trino-connector/src/test/java/org/apache/gravitino/trino/connector/GravitinoMockServer.java@@ -148,7 +148,8 @@ public class GravitinoMockServer implements AutoCloseable {@Overridepublic String[] answer(InvocationOnMock invocation) throws Throwable {return metalakes.get(metalakeName).catalogs.keySet().toArray(String[]::new);- };+ }+ ;});when(metaLake.createCatalog(