Class SnapshotSummary.Builder

java.lang.Object
org.apache.iceberg.SnapshotSummary.Builder
Enclosing class:
SnapshotSummary

public static class SnapshotSummary.Builder extends Object
  • Method Details

    • clear

      public void clear()
    • setPartitionSummaryLimit

      public void setPartitionSummaryLimit(int max)
      Sets the maximum number of changed partitions before partition summaries will be excluded.

      If the number of changed partitions is over this max, summaries will not be included. If the number of changed partitions is <= this limit, then partition-level summaries will be included in the summary if they are available, and "partition-summaries-included" will be set to "true".

      Parameters:
      max - maximum number of changed partitions
    • incrementDuplicateDeletes

      public void incrementDuplicateDeletes()
    • incrementDuplicateDeletes

      public void incrementDuplicateDeletes(int increment)
    • addedFile

      public void addedFile(PartitionSpec spec, DataFile file)
    • addedFile

      public void addedFile(PartitionSpec spec, DeleteFile file)
    • deletedFile

      public void deletedFile(PartitionSpec spec, ContentFile<?> file)
    • deletedFile

      public void deletedFile(PartitionSpec spec, DataFile file)
    • deletedFile

      public void deletedFile(PartitionSpec spec, DeleteFile file)
    • addedManifest

      public void addedManifest(ManifestFile manifest)
    • set

      public void set(String property, String value)
    • merge

      public void merge(SnapshotSummary.Builder builder)
    • build

      public Map<String,String> build()