public interface RewriteFiles extends SnapshotUpdate<RewriteFiles>
This API accumulates file additions and deletions, produces a new Snapshot
of the
changes, and commits that snapshot as the current.
When committing, these changes will be applied to the latest table snapshot. Commit conflicts
will be resolved by applying the changes to the new latest snapshot and reattempting the commit.
If any of the deleted files are no longer in the latest snapshot when reattempting, the commit
will throw a ValidationException
.
Modifier and Type | Method and Description |
---|---|
RewriteFiles |
rewriteFiles(java.util.Set<DataFile> filesToDelete,
java.util.Set<DataFile> filesToAdd)
Add a rewrite that replaces one set of files with another set that contains the same data.
|
deleteWith, set, stageOnly
apply, commit, updateEvent
RewriteFiles rewriteFiles(java.util.Set<DataFile> filesToDelete, java.util.Set<DataFile> filesToAdd)
filesToDelete
- files that will be replaced (deleted), cannot be null or empty.filesToAdd
- files that will be added, cannot be null or empty.