aokolnychyi commented on code in PR #5105:
URL: https://github.com/apache/iceberg/pull/5105#discussion_r908800823
##########
api/src/main/java/org/apache/iceberg/Snapshot.java:
##########
@@ -133,50 +133,76 @@ public interface Snapshot extends Serializable {
Map<String, String> summary();
/**
- * Return all files added to the table in this snapshot.
+ * Return all data files added to the table in this snapshot.
* <p>
* The files returned include the following columns: file_path, file_format,
partition,
* record_count, and file_size_in_bytes. Other columns will be null.
*
- * @return all files added to the table in this snapshot.
- * @deprecated since 0.14.0, will be removed in 1.0.0; Use {@link
Snapshot#addedFiles(FileIO)} instead.
+ * @return all data files added to the table in this snapshot.
+ * @deprecated since 0.14.0, will be removed in 1.0.0; Use {@link
Snapshot#addedDataFiles(FileIO)} instead.
*/
@Deprecated
Iterable<DataFile> addedFiles();
/**
- * Return all files added to the table in this snapshot.
+ * Return all data files added to the table in this snapshot.
* <p>
* The files returned include the following columns: file_path, file_format,
partition,
* record_count, and file_size_in_bytes. Other columns will be null.
*
* @param io a {@link FileIO} instance used for reading files from storage
- * @return all files added to the table in this snapshot.
+ * @return all data files added to the table in this snapshot.
*/
- Iterable<DataFile> addedFiles(FileIO io);
+ Iterable<DataFile> addedDataFiles(FileIO io);
/**
- * Return all files deleted from the table in this snapshot.
+ * Return all data files deleted from the table in this snapshot.
* <p>
* The files returned include the following columns: file_path, file_format,
partition,
* record_count, and file_size_in_bytes. Other columns will be null.
*
- * @return all files deleted from the table in this snapshot.
- * @deprecated since 0.14.0, will be removed in 1.0.0; Use {@link
Snapshot#deletedFiles(FileIO)} instead.
+ * @return all data files deleted from the table in this snapshot.
+ * @deprecated since 0.14.0, will be removed in 1.0.0; Use {@link
Snapshot#deletedDataFiles(FileIO)} instead.
*/
@Deprecated
Iterable<DataFile> deletedFiles();
/**
- * Return all files deleted from the table in this snapshot.
+ * Return all data files deleted from the table in this snapshot.
* <p>
* The files returned include the following columns: file_path, file_format,
partition,
* record_count, and file_size_in_bytes. Other columns will be null.
*
* @param io a {@link FileIO} instance used for reading files from storage
- * @return all files deleted from the table in this snapshot.
+ * @return all data files deleted from the table in this snapshot.
*/
- Iterable<DataFile> deletedFiles(FileIO io);
+ Iterable<DataFile> deletedDataFiles(FileIO io);
+
+ /**
+ * Return all delete files added to the table in this snapshot.
+ * <p>
+ * The files returned include the following columns: file_path, file_format,
partition,
+ * record_count, and file_size_in_bytes. Other columns will be null.
+ *
+ * @param io a {@link FileIO} instance used for reading files from storage
+ * @return all delete files added to the table in this snapshot
+ */
+ default Iterable<DeleteFile> addedDeleteFiles(FileIO io) {
+ throw new UnsupportedOperationException(this.getClass().getName() + "
doesn't implement addedDeleteFiles");
+ }
+
+ /**
+ * Return all delete files deleted from the table in this snapshot.
+ * <p>
+ * The files returned include the following columns: file_path, file_format,
partition,
+ * record_count, and file_size_in_bytes. Other columns will be null.
+ *
+ * @param io a {@link FileIO} instance used for reading files from storage
+ * @return all delete files deleted from the table in this snapshot
+ */
+ default Iterable<DeleteFile> deletedDeleteFiles(FileIO io) {
Review Comment:
Sounds good, I'll update both.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]