Package org.apache.iceberg
Interface PartitionStatistics
- All Superinterfaces:
StructLike
- All Known Implementing Classes:
BasePartitionStatistics
Interface for partition statistics returned from a
PartitionStatisticsScan.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final intstatic final Types.NestedFieldstatic final int -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of data files in the partitionReturns the number of data records in the partitiondvCount()Returns the number of delete vectors in the partitionReturns the number of equality delete files in the partitionReturns the number of equality delete records in the partitionReturns the timestamp in milliseconds when the partition was last updatedReturns the ID of the snapshot that last updated this partitionReturns the partition of these partition statisticsReturns the number of positional delete files in the partitionReturns the number of positional delete records in the partition.static Schemaschema(Types.StructType unifiedPartitionType, int formatVersion) specId()Returns the spec ID of the partition of these partition statisticsReturns the total size of data files in bytes in the partitionReturns the total number of records in the partitionMethods inherited from interface org.apache.iceberg.StructLike
get, set, size
-
Field Details
-
EMPTY_PARTITION_FIELD
-
SPEC_ID
-
DATA_RECORD_COUNT
-
DATA_FILE_COUNT
-
TOTAL_DATA_FILE_SIZE_IN_BYTES
-
POSITION_DELETE_RECORD_COUNT
-
POSITION_DELETE_FILE_COUNT
-
EQUALITY_DELETE_RECORD_COUNT
-
EQUALITY_DELETE_FILE_COUNT
-
TOTAL_RECORD_COUNT
-
LAST_UPDATED_AT
-
LAST_UPDATED_SNAPSHOT_ID
-
DV_COUNT
-
PARTITION_POSITION
static final int PARTITION_POSITION- See Also:
-
SPEC_ID_POSITION
static final int SPEC_ID_POSITION- See Also:
-
DATA_RECORD_COUNT_POSITION
static final int DATA_RECORD_COUNT_POSITION- See Also:
-
DATA_FILE_COUNT_POSITION
static final int DATA_FILE_COUNT_POSITION- See Also:
-
TOTAL_DATA_FILE_SIZE_IN_BYTES_POSITION
static final int TOTAL_DATA_FILE_SIZE_IN_BYTES_POSITION- See Also:
-
POSITION_DELETE_RECORD_COUNT_POSITION
static final int POSITION_DELETE_RECORD_COUNT_POSITION- See Also:
-
POSITION_DELETE_FILE_COUNT_POSITION
static final int POSITION_DELETE_FILE_COUNT_POSITION- See Also:
-
EQUALITY_DELETE_RECORD_COUNT_POSITION
static final int EQUALITY_DELETE_RECORD_COUNT_POSITION- See Also:
-
EQUALITY_DELETE_FILE_COUNT_POSITION
static final int EQUALITY_DELETE_FILE_COUNT_POSITION- See Also:
-
TOTAL_RECORD_COUNT_POSITION
static final int TOTAL_RECORD_COUNT_POSITION- See Also:
-
LAST_UPDATED_AT_POSITION
static final int LAST_UPDATED_AT_POSITION- See Also:
-
LAST_UPDATED_SNAPSHOT_ID_POSITION
static final int LAST_UPDATED_SNAPSHOT_ID_POSITION- See Also:
-
DV_COUNT_POSITION
static final int DV_COUNT_POSITION- See Also:
-
-
Method Details
-
schema
-
partition
StructLike partition()Returns the partition of these partition statistics -
specId
Integer specId()Returns the spec ID of the partition of these partition statistics -
dataRecordCount
Long dataRecordCount()Returns the number of data records in the partition -
dataFileCount
Integer dataFileCount()Returns the number of data files in the partition -
totalDataFileSizeInBytes
Long totalDataFileSizeInBytes()Returns the total size of data files in bytes in the partition -
positionDeleteRecordCount
Long positionDeleteRecordCount()Returns the number of positional delete records in the partition. Also includes dv record count as per spec -
positionDeleteFileCount
Integer positionDeleteFileCount()Returns the number of positional delete files in the partition -
equalityDeleteRecordCount
Long equalityDeleteRecordCount()Returns the number of equality delete records in the partition -
equalityDeleteFileCount
Integer equalityDeleteFileCount()Returns the number of equality delete files in the partition -
totalRecords
Long totalRecords()Returns the total number of records in the partition -
lastUpdatedAt
Long lastUpdatedAt()Returns the timestamp in milliseconds when the partition was last updated -
lastUpdatedSnapshotId
Long lastUpdatedSnapshotId()Returns the ID of the snapshot that last updated this partition -
dvCount
Integer dvCount()Returns the number of delete vectors in the partition
-