Class SnapshotChanges

java.lang.Object
org.apache.iceberg.SnapshotChanges

public class SnapshotChanges extends Object
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.

  • Method Details

    • builderFor

      public static SnapshotChanges.Builder builderFor(Table table)
      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

      public Iterable<DataFile> addedDataFiles()
      Returns all data files added to the table in this snapshot
    • removedDataFiles

      public Iterable<DataFile> removedDataFiles()
      Returns all data files removed from the table in this snapshot.
    • addedDeleteFiles

      public Iterable<DeleteFile> addedDeleteFiles()
      Returns all delete files added to the table in this snapshot.
    • removedDeleteFiles

      public Iterable<DeleteFile> removedDeleteFiles()
      Returns all delete files removed from the table in this snapshot.