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, waitupdateEventpublic SetPartitionStatistics(TableOperations ops)
public UpdatePartitionStatistics setPartitionStatistics(PartitionStatisticsFile file)
UpdatePartitionStatisticssetPartitionStatistics in interface UpdatePartitionStatisticspublic UpdatePartitionStatistics removePartitionStatistics(long snapshotId)
UpdatePartitionStatisticsremovePartitionStatistics in interface UpdatePartitionStatisticspublic java.util.List<PartitionStatisticsFile> apply()
PendingUpdateThis does not result in a permanent update.
apply in interface PendingUpdate<java.util.List<PartitionStatisticsFile>>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<PartitionStatisticsFile>>