Package org.apache.iceberg
Class SnapshotSummary.Builder
java.lang.Object
org.apache.iceberg.SnapshotSummary.Builder
- Enclosing class:
- SnapshotSummary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addedFile
(PartitionSpec spec, DataFile file) void
addedFile
(PartitionSpec spec, DeleteFile file) void
addedManifest
(ManifestFile manifest) build()
void
clear()
void
deletedFile
(PartitionSpec spec, ContentFile<?> file) void
deletedFile
(PartitionSpec spec, DataFile file) void
deletedFile
(PartitionSpec spec, DeleteFile file) void
void
incrementDuplicateDeletes
(int increment) void
merge
(SnapshotSummary.Builder builder) void
void
setPartitionSummaryLimit
(int max) Sets the maximum number of changed partitions before partition summaries will be excluded.
-
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
-
addedFile
-
deletedFile
-
deletedFile
-
deletedFile
-
addedManifest
-
set
-
merge
-
build
-