Package org.apache.iceberg.data
Class PartitionStatsHandler
java.lang.Object
org.apache.iceberg.data.PartitionStatsHandler
Deprecated.
Computes, writes and reads the 
PartitionStatisticsFile. Uses generic readers and writers
 to support writing and reading of the stats in table default format.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final intDeprecated.static final StringDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.static final Types.NestedFieldDeprecated.
- 
Method SummaryModifier and TypeMethodDescriptionstatic PartitionStatisticsFilecomputeAndWriteStatsFile(Table table) Deprecated.Computes and writes thePartitionStatisticsFilefor a given table's current snapshot.static PartitionStatisticsFilecomputeAndWriteStatsFile(Table table, long snapshotId) Deprecated.Computes and writes thePartitionStatisticsFilefor a given table and snapshot.static CloseableIterable<PartitionStats> readPartitionStatsFile(Schema schema, InputFile inputFile) Deprecated.Reads partition statistics from the specifiedInputFileusing given schema.static Schemaschema(Types.StructType unifiedPartitionType) Deprecated.Generates the partition stats file schema based on a combined partition type which considers all specs in a table.
- 
Field Details- 
PARTITION_FIELD_IDpublic static final int PARTITION_FIELD_IDDeprecated.- See Also:
 
- 
PARTITION_FIELD_NAMEDeprecated.- See Also:
 
- 
SPEC_IDDeprecated.
- 
DATA_RECORD_COUNTDeprecated.
- 
DATA_FILE_COUNTDeprecated.
- 
TOTAL_DATA_FILE_SIZE_IN_BYTESDeprecated.
- 
POSITION_DELETE_RECORD_COUNTDeprecated.
- 
POSITION_DELETE_FILE_COUNTDeprecated.
- 
EQUALITY_DELETE_RECORD_COUNTDeprecated.
- 
EQUALITY_DELETE_FILE_COUNTDeprecated.
- 
TOTAL_RECORD_COUNTDeprecated.
- 
LAST_UPDATED_ATDeprecated.
- 
LAST_UPDATED_SNAPSHOT_IDDeprecated.
 
- 
- 
Method Details- 
schemaDeprecated.Generates the partition stats file schema based on a combined partition type which considers all specs in a table.- Parameters:
- unifiedPartitionType- unified partition schema type. Could be calculated by- Partitioning.partitionType(Table).
- Returns:
- a schema that corresponds to the provided unified partition type.
 
- 
computeAndWriteStatsFileDeprecated.Computes and writes thePartitionStatisticsFilefor a given table's current snapshot.- Parameters:
- table- The- Tablefor which the partition statistics is computed.
- Returns:
- PartitionStatisticsFilefor the current snapshot, or null if no statistics are present.
- Throws:
- IOException
 
- 
computeAndWriteStatsFilepublic static PartitionStatisticsFile computeAndWriteStatsFile(Table table, long snapshotId) throws IOException Deprecated.Computes and writes thePartitionStatisticsFilefor a given table and snapshot.- Parameters:
- table- The- Tablefor which the partition statistics is computed.
- snapshotId- snapshot for which partition statistics are computed.
- Returns:
- PartitionStatisticsFilefor the given snapshot, or null if no statistics are present.
- Throws:
- IOException
 
- 
readPartitionStatsFilepublic static CloseableIterable<PartitionStats> readPartitionStatsFile(Schema schema, InputFile inputFile) Deprecated.Reads partition statistics from the specifiedInputFileusing given schema.
 
- 
PartitionStatsHandlerfrom core module