public class SetPartitionStatistics extends java.lang.Object implements UpdatePartitionStatistics
Constructor and Description |
---|
SetPartitionStatistics(TableOperations ops) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PartitionStatisticsFile> |
apply()
Apply the pending changes and return the uncommitted changes for validation.
|
void |
commit()
Apply the pending changes and commit.
|
UpdatePartitionStatistics |
removePartitionStatistics(long snapshotId)
Remove the table's partition statistics file for given snapshot.
|
UpdatePartitionStatistics |
setPartitionStatistics(PartitionStatisticsFile file)
Set the table's partition statistics file for given snapshot, replacing the previous partition
statistics file for the snapshot if any exists.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateEvent
public SetPartitionStatistics(TableOperations ops)
public UpdatePartitionStatistics setPartitionStatistics(PartitionStatisticsFile file)
UpdatePartitionStatistics
setPartitionStatistics
in interface UpdatePartitionStatistics
public UpdatePartitionStatistics removePartitionStatistics(long snapshotId)
UpdatePartitionStatistics
removePartitionStatistics
in interface UpdatePartitionStatistics
public java.util.List<PartitionStatisticsFile> apply()
PendingUpdate
This does not result in a permanent update.
apply
in interface PendingUpdate<java.util.List<PartitionStatisticsFile>>
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<PartitionStatisticsFile>>