Package org.apache.iceberg
Class SetStatistics
java.lang.Object
org.apache.iceberg.SetStatistics
- All Implemented Interfaces:
PendingUpdate<List<StatisticsFile>>,UpdateStatistics
-
Constructor Summary
Constructors -
Method Summary
Modifier 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) 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.PendingUpdate
updateEvent
-
Constructor Details
-
SetStatistics
-
-
Method Details
-
setStatistics
Description copied from interface:UpdateStatisticsSet the table's statistics file for given snapshot, replacing the previous statistics file for the snapshot if any exists.- Specified by:
setStatisticsin interfaceUpdateStatistics- Returns:
- this for method chaining
-
removeStatistics
Description copied from interface:UpdateStatisticsRemove the table's statistics file for given snapshot.- Specified by:
removeStatisticsin interfaceUpdateStatistics- Returns:
- this for method chaining
-
apply
Description 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 interfacePendingUpdate<List<StatisticsFile>>- Returns:
- the uncommitted changes that would be committed by calling
PendingUpdate.commit()
-
commit
public 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 interfacePendingUpdate<List<StatisticsFile>>
-