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, wait
updateEvent
public SetStatistics(TableOperations ops)
public UpdateStatistics setStatistics(long snapshotId, StatisticsFile statisticsFile)
UpdateStatistics
setStatistics
in interface UpdateStatistics
public UpdateStatistics removeStatistics(long snapshotId)
UpdateStatistics
removeStatistics
in interface UpdateStatistics
public java.util.List<StatisticsFile> apply()
PendingUpdate
This does not result in a permanent update.
apply
in interface PendingUpdate<java.util.List<StatisticsFile>>
PendingUpdate.commit()
public void commit()
PendingUpdate
Changes 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>>