@Override
    public void expireSnapshots(DefaultTableRuntime tableRuntime) {
      if (!expireSnapshotEnabled(tableRuntime)) {
        return;
      }
      long now = System.currentTimeMillis();
      expireFiles(now - snapshotsKeepTime(tableRuntime));
      expireSnapshots(
          mustOlderThan(tableRuntime, now),
          tableRuntime.getTableConfiguration().getSnapshotMinCount());
    }
Table maintainer for mixed-iceberg and mixed-hive tables.
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/maintainer/MixedTableMaintainer.java