private static FilesStatistics collectPendingFileInfo(
      AbstractOptimizingEvaluator.PendingInput pendingInput) {
    if (pendingInput == null) {
      return null;
    }
    return FilesStatistics.builder()
        .addFiles(pendingInput.getDataFileSize(), pendingInput.getDataFileCount())
        .addFiles(pendingInput.getEqualityDeleteBytes(), pendingInput.getEqualityDeleteFileCount())
        .addFiles(
            pendingInput.getPositionalDeleteBytes(), pendingInput.getPositionalDeleteFileCount())
        .build();
  }
Build current table optimize info.

@return TableOptimizeInfo
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/utils/OptimizingUtil.java