public static class SnapshotSummary.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public void clear()
public void setPartitionSummaryLimit(int max)
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".
max
- maximum number of changed partitionspublic void incrementDuplicateDeletes()
public void incrementDuplicateDeletes(int increment)
public void addedFile(PartitionSpec spec, DataFile file)
public void addedFile(PartitionSpec spec, DeleteFile file)
public void deletedFile(PartitionSpec spec, ContentFile<?> file)
public void deletedFile(PartitionSpec spec, DataFile file)
public void deletedFile(PartitionSpec spec, DeleteFile file)
public void addedManifest(ManifestFile manifest)
public void set(java.lang.String property, java.lang.String value)
public void merge(SnapshotSummary.Builder builder)
public java.util.Map<java.lang.String,java.lang.String> build()