From 9098335434e2d8c82b4ae9a69ee5684ae6fde51e Mon Sep 17 00:00:00 2001 From: pancx Date: Tue, 7 Jan 2025 15:20:10 +0800 Subject: [PATCH] [#6078] feat(core): Support model event to Gravitino server Fix some class comments. --- .../listener/api/event/DropModelVersionEvent.java | 4 ++-- .../gravitino/listener/api/event/ListModelEvent.java | 11 ++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/DropModelVersionEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/DropModelVersionEvent.java index d329a2ef676..d7118565fac 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/DropModelVersionEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/DropModelVersionEvent.java @@ -59,8 +59,8 @@ public ModelInfo DropModelVersionInfo() { /** * Retrieves the existence status of the model version at the time of the drop operation. * - * @return A boolean value indicating whether the model version existed. {@code true} if the table - * existed, otherwise {@code false}. + * @return A boolean value indicating whether the model version existed. {@code true} if the model + * version existed, otherwise {@code false}. */ public boolean isExists() { return isExists; diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/ListModelEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/ListModelEvent.java index cf430e9c6e0..b929532a8a8 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/ListModelEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/ListModelEvent.java @@ -22,19 +22,12 @@ import org.apache.gravitino.NameIdentifier; import org.apache.gravitino.Namespace; -/** - * Represents an event that is triggered upon the successful list of models within a namespace. - * - *

To optimize memory usage and avoid the potential overhead associated with storing a large - * number of tables directly within the ListTableEvent, the actual tables listed are not maintained - * in this event. This design decision helps in managing resource efficiency, especially in - * environments with extensive table listings. - */ +/** Represents an event that is triggered upon the successful list of models within a namespace. */ public class ListModelEvent extends ModelEvent { private final Namespace namespace; /** - * Constructs an instance of {@code ListTableEvent}. + * Constructs an instance of {@code ListModelEvent}. * * @param user The username of the individual who initiated the model listing. * @param namespace The namespace from which models were listed.