@Override
  public WriteResult complete() throws IOException {
    writerHolder.close();
    List<DataFile> files = writerHolder.completedFiles();
    return WriteResult.builder().addDataFiles(files.toArray(new DataFile[] {})).build();
  }
Abstract implementation of writer for {@link BaseTable}.

@param <T> to indicate the record data type.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/writer/BaseTaskWriter.java