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