Package org.apache.iceberg
Class PartitionStatsUtil
java.lang.Object
org.apache.iceberg.PartitionStatsUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<PartitionStats> computeStats
(Table table, Snapshot snapshot) Computes the partition stats for the given snapshot of the table.static List
<PartitionStats> sortStats
(Collection<PartitionStats> stats, Types.StructType partitionType) Sorts thePartitionStats
based on the partition data.
-
Method Details
-
computeStats
Computes the partition stats for the given snapshot of the table.- Parameters:
table
- the table for which partition stats to be computed.snapshot
- the snapshot for which partition stats is computed.- Returns:
- the collection of
PartitionStats
-
sortStats
public static List<PartitionStats> sortStats(Collection<PartitionStats> stats, Types.StructType partitionType) Sorts thePartitionStats
based on the partition data.- Parameters:
stats
- collection ofPartitionStats
which needs to be sorted.partitionType
- unified partition schema.- Returns:
- the list of
PartitionStats
-