@Override
  protected ChangeAction action(Record data) {
    if (data instanceof RecordWithAction) {
      return ((RecordWithAction) data).getAction();
    }
    return writeAction;
  }
Implementation of {@link ChangeTaskWriter} to write {@link Record}.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/writer/GenericChangeTaskWriter.java