@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TaskWriterKey writerKey = (TaskWriterKey) o;
    return Objects.equals(partitionKey, writerKey.partitionKey)
        && Objects.equals(treeNode, writerKey.treeNode)
        && fileType == writerKey.fileType;
  }
Key of task writers, record with the same key can be written in the same file.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/writer/TaskWriterKey.java