jerryshao commented on code in PR #10189:
URL: https://github.com/apache/gravitino/pull/10189#discussion_r2888075106


##########
api/src/main/java/org/apache/gravitino/policy/PolicyContents.java:
##########
@@ -42,6 +48,48 @@ public static PolicyContent custom(
     return new CustomContent(rules, supportedObjectTypes, properties);
   }
 
+  /**
+   * Creates an iceberg compaction policy content.
+   *
+   * @param minDatafileMse minimum threshold for custom-datafile_mse
+   * @param minDeleteFileNumber minimum threshold for custom-delete_file_number
+   * @param rewriteOptions rewrite options forwarded as job.options.*
+   * @return iceberg compaction policy content
+   */
+  public static PolicyContent icebergCompaction(
+      long minDatafileMse, long minDeleteFileNumber, Map<String, String> 
rewriteOptions) {

Review Comment:
   This method can call the below one to simplify the code.



-- 
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