Skip to content

Commit

Permalink
[core] Document Table.newExpireSnapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Jan 31, 2024
1 parent ca26bd0 commit 89e908d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ public interface ExpireSnapshots {

ExpireSnapshots maxDeletes(int maxDeletes);

/** @return How many snapshots have been expired. */
int expire();
}
2 changes: 2 additions & 0 deletions paimon-core/src/main/java/org/apache/paimon/table/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public interface Table extends Serializable {
@Experimental
void deleteBranch(String branchName);

/** Manually expire snapshots, parameters can be controlled independently of table options. */
@Experimental
ExpireSnapshots newExpireSnapshots();

// =============== Read & Write Operations ==================
Expand Down

0 comments on commit 89e908d

Please sign in to comment.