Skip to content

Commit

Permalink
[apache#6078] feat(core): Support model event to Gravitino server
Browse files Browse the repository at this point in the history
Fix some class comments.
  • Loading branch information
Abyss-lord committed Jan 9, 2025
1 parent 4b5e95a commit 9098335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p>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.
Expand Down

0 comments on commit 9098335

Please sign in to comment.