Package org.apache.iceberg
Class SetStatistics
java.lang.Object
org.apache.iceberg.SetStatistics
- All Implemented Interfaces:
- PendingUpdate<List<StatisticsFile>>,- UpdateStatistics
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapply()Apply the pending changes and return the uncommitted changes for validation.voidcommit()Apply the pending changes and commit.removeStatistics(long snapshotId) Remove the table's statistics file for given snapshot.setStatistics(long snapshotId, StatisticsFile statisticsFile) Deprecated.setStatistics(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 class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.PendingUpdateupdateEvent
- 
Constructor Details- 
SetStatistics
 
- 
- 
Method Details- 
setStatisticsDeprecated.since 1.8.0, will be removed in 1.9.0 or 2.0.0, usesetStatistics(StatisticsFile).Set the statistics file for a snapshot.- Specified by:
- setStatisticsin interface- UpdateStatistics
- Returns:
- this for method chaining
 
- 
setStatisticsDescription copied from interface:UpdateStatisticsSet 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.- Specified by:
- setStatisticsin interface- UpdateStatistics
- Returns:
- this for method chaining
 
- 
removeStatisticsDescription copied from interface:UpdateStatisticsRemove the table's statistics file for given snapshot.- Specified by:
- removeStatisticsin interface- UpdateStatistics
- Returns:
- this for method chaining
 
- 
applyDescription copied from interface:PendingUpdateApply the pending changes and return the uncommitted changes for validation.This does not result in a permanent update. - Specified by:
- applyin interface- PendingUpdate<List<StatisticsFile>>
- Returns:
- the uncommitted changes that would be committed by calling PendingUpdate.commit()
 
- 
commitpublic void commit()Description copied from interface:PendingUpdateApply the pending changes and commit.Changes are committed by calling the underlying table's commit method. Once the commit is successful, the updated table will be refreshed. - Specified by:
- commitin interface- PendingUpdate<List<StatisticsFile>>
 
 
- 
setStatistics(StatisticsFile).