Package org.apache.iceberg
Interface UpdateStatistics
-
- All Superinterfaces:
PendingUpdate<java.util.List<StatisticsFile>>
public interface UpdateStatistics extends PendingUpdate<java.util.List<StatisticsFile>>
API for updating statistics files in a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description UpdateStatisticsremoveStatistics(long snapshotId)Remove the table's statistics file for given snapshot.default UpdateStatisticssetStatistics(long snapshotId, StatisticsFile statisticsFile)Deprecated.since 1.8.0, will be removed in 2.0.0, usesetStatistics(StatisticsFile).default UpdateStatisticssetStatistics(StatisticsFile statisticsFile)Set the table's statistics file for given snapshot, replacing the previous statistics file for the snapshot if any exists.-
Methods inherited from interface org.apache.iceberg.PendingUpdate
apply, commit, updateEvent
-
-
-
-
Method Detail
-
setStatistics
@Deprecated default UpdateStatistics setStatistics(long snapshotId, StatisticsFile statisticsFile)
Deprecated.since 1.8.0, will be removed in 2.0.0, usesetStatistics(StatisticsFile).Set the table's statistics file for given snapshot, replacing the previous statistics file for the snapshot if any exists.- Returns:
- this for method chaining
-
setStatistics
default UpdateStatistics setStatistics(StatisticsFile statisticsFile)
Set the table's statistics file for given snapshot, replacing the previous statistics file for the snapshot if any exists. The snapshot id of the statistics file will be used.- Returns:
- this for method chaining
-
removeStatistics
UpdateStatistics removeStatistics(long snapshotId)
Remove the table's statistics file for given snapshot.- Returns:
- this for method chaining
-
-