jerqi commented on code in PR #7734:
URL: https://github.com/apache/gravitino/pull/7734#discussion_r2278396343


##########
core/src/main/java/org/apache/gravitino/EntityStore.java:
##########
@@ -190,6 +190,54 @@ default boolean delete(NameIdentifier ident, EntityType 
entityType) throws IOExc
    */
   boolean delete(NameIdentifier ident, EntityType entityType, boolean cascade) 
throws IOException;
 
+  /**
+   * Batch delete entities in the specified namespace.
+   *
+   * @param namespace the namespace in which the entities are located
+   * @param namespaceEntityType the detailed type of the namespace entity
+   * @param deleteEntityNames the names of the entities to be deleted
+   * @param entityType the general type of the entities to be deleted
+   * @param cascade if true, cascade delete the entities, otherwise just 
delete the entities
+   * @return the number of entities deleted
+   * @throws IOException if the batch delete operation fails
+   */
+  int batchDeleteInNamespace(
+      Namespace namespace,
+      EntityType namespaceEntityType,
+      List<String> deleteEntityNames,
+      EntityType entityType,
+      boolean cascade)
+      throws IOException;

Review Comment:
   How about using a new class
   ```
   DeleteNameIdentifier {
      Pair<Namespace, EntityType> nsWithType;
      String name;
      EntityType EntityType;
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to