Package org.apache.iceberg
Class PartitionStatsUtil
- java.lang.Object
-
- org.apache.iceberg.PartitionStatsUtil
-
public class PartitionStatsUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<PartitionStats>computeStats(Table table, Snapshot snapshot)Computes the partition stats for the given snapshot of the table.static java.util.List<PartitionStats>sortStats(java.util.Collection<PartitionStats> stats, Types.StructType partitionType)Sorts thePartitionStatsbased on the partition data.
-
-
-
Method Detail
-
computeStats
public static java.util.Collection<PartitionStats> computeStats(Table table, Snapshot snapshot)
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 java.util.List<PartitionStats> sortStats(java.util.Collection<PartitionStats> stats, Types.StructType partitionType)
Sorts thePartitionStatsbased on the partition data.- Parameters:
stats- collection ofPartitionStatswhich needs to be sorted.partitionType- unified partition schema.- Returns:
- the list of
PartitionStats
-
-