Package org.apache.iceberg
Class SnapshotChanges
java.lang.Object
org.apache.iceberg.SnapshotChanges
Helper class for retrieving file changes in a snapshot with caching.
This class caches the results of file change detection operations, making it efficient to
query multiple file change types for the same snapshot. By default, manifests are read
single-threaded. Use SnapshotChanges.Builder.executeWith(ExecutorService) to enable parallel manifest
reading.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns all data files added to the table in this snapshotReturns all delete files added to the table in this snapshot.static SnapshotChanges.BuilderbuilderFor(Table table) Create a builder for SnapshotChanges using the table's current snapshot.Returns all data files removed from the table in this snapshot.Returns all delete files removed from the table in this snapshot.
-
Method Details
-
builderFor
Create a builder for SnapshotChanges using the table's current snapshot.- Parameters:
table- the table to detect file changes for- Returns:
- a new Builder
-
addedDataFiles
Returns all data files added to the table in this snapshot -
removedDataFiles
Returns all data files removed from the table in this snapshot. -
addedDeleteFiles
Returns all delete files added to the table in this snapshot. -
removedDeleteFiles
Returns all delete files removed from the table in this snapshot.
-