stevenzwu commented on code in PR #14287:
URL: https://github.com/apache/iceberg/pull/14287#discussion_r2535555398
##########
api/src/main/java/org/apache/iceberg/ExpireSnapshots.java:
##########
@@ -38,6 +38,25 @@
* <p>{@link #apply()} returns a list of the snapshots that will be removed.
*/
public interface ExpireSnapshots extends PendingUpdate<List<Snapshot>> {
+ /** An enum representing possible clean up levels used in snapshot
expiration. */
+ enum CleanupLevel {
+ /** Skip all file cleanup, only remove snapshot metadata. */
+ NONE(0),
+ /** Clean up only metadata files (manifests, manifest lists, statistics),
retain data files. */
+ METADATA_ONLY(1),
+ /** Clean up both metadata and data files (default). */
+ ALL(2);
+
+ CleanupLevel(int id) {
+ this.id = id;
+ }
+
+ private final int id;
+
+ public int id() {
Review Comment:
do we need the `id` info for the enum? don't seem to be used.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]