public class SetStatistics extends java.lang.Object implements UpdateStatistics
| Constructor and Description |
|---|
SetStatistics(TableOperations ops) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<StatisticsFile> |
apply()
Apply the pending changes and return the uncommitted changes for validation.
|
void |
commit()
Apply the pending changes and commit.
|
UpdateStatistics |
removeStatistics(long snapshotId)
Remove the table's statistics file for given snapshot.
|
UpdateStatistics |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateEventpublic SetStatistics(TableOperations ops)
public UpdateStatistics setStatistics(long snapshotId, StatisticsFile statisticsFile)
UpdateStatisticssetStatistics in interface UpdateStatisticspublic UpdateStatistics removeStatistics(long snapshotId)
UpdateStatisticsremoveStatistics in interface UpdateStatisticspublic java.util.List<StatisticsFile> apply()
PendingUpdateThis does not result in a permanent update.
apply in interface PendingUpdate<java.util.List<StatisticsFile>>PendingUpdate.commit()public void commit()
PendingUpdateChanges are committed by calling the underlying table's commit method.
Once the commit is successful, the updated table will be refreshed.
commit in interface PendingUpdate<java.util.List<StatisticsFile>>