public Writer build() {
      Snapshot snapshot;
      if (snapshotId == null) {
        snapshot = table.currentSnapshot();
      } else {
        snapshot = table.snapshot(snapshotId);
      }
      Preconditions.checkArgument(snapshot != null, "Cannot find snapshot with id %s", snapshotId);
      return new Writer(table, snapshot.snapshotId(), snapshot.sequenceNumber());
    }
Util class for write and read Iceberg statistics file {@link StatisticsFile}.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/StatisticsFileUtil.java