Package org.apache.iceberg
Class PartitionStats
- java.lang.Object
-
- org.apache.iceberg.PartitionStats
-
- All Implemented Interfaces:
StructLike
public class PartitionStats extends java.lang.Object implements StructLike
-
-
Constructor Summary
Constructors Constructor Description PartitionStats(StructLike partition, int specId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendStats(PartitionStats entry)Appends statistics from given entry to current entry.intdataFileCount()longdataRecordCount()voiddeletedEntry(Snapshot snapshot)Updates the modified time and snapshot ID for the deleted manifest entry.intequalityDeleteFileCount()longequalityDeleteRecordCount()<T> Tget(int pos, java.lang.Class<T> javaClass)java.lang.LonglastUpdatedAt()java.lang.LonglastUpdatedSnapshotId()voidliveEntry(ContentFile<?> file, Snapshot snapshot)Updates the partition stats from the data/delete file.StructLikepartition()intpositionDeleteFileCount()longpositionDeleteRecordCount()<T> voidset(int pos, T value)intsize()intspecId()longtotalDataFileSizeInBytes()longtotalRecordCount()
-
-
-
Constructor Detail
-
PartitionStats
public PartitionStats(StructLike partition, int specId)
-
-
Method Detail
-
partition
public StructLike partition()
-
specId
public int specId()
-
dataRecordCount
public long dataRecordCount()
-
dataFileCount
public int dataFileCount()
-
totalDataFileSizeInBytes
public long totalDataFileSizeInBytes()
-
positionDeleteRecordCount
public long positionDeleteRecordCount()
-
positionDeleteFileCount
public int positionDeleteFileCount()
-
equalityDeleteRecordCount
public long equalityDeleteRecordCount()
-
equalityDeleteFileCount
public int equalityDeleteFileCount()
-
totalRecordCount
public long totalRecordCount()
-
lastUpdatedAt
public java.lang.Long lastUpdatedAt()
-
lastUpdatedSnapshotId
public java.lang.Long lastUpdatedSnapshotId()
-
liveEntry
public void liveEntry(ContentFile<?> file, Snapshot snapshot)
Updates the partition stats from the data/delete file.- Parameters:
file- theContentFilefrom the manifest entry.snapshot- the snapshot corresponding to the live entry.
-
deletedEntry
public void deletedEntry(Snapshot snapshot)
Updates the modified time and snapshot ID for the deleted manifest entry.- Parameters:
snapshot- the snapshot corresponding to the deleted manifest entry.
-
appendStats
public void appendStats(PartitionStats entry)
Appends statistics from given entry to current entry.- Parameters:
entry- the entry from which statistics will be sourced.
-
size
public int size()
- Specified by:
sizein interfaceStructLike
-
get
public <T> T get(int pos, java.lang.Class<T> javaClass)- Specified by:
getin interfaceStructLike
-
set
public <T> void set(int pos, T value)- Specified by:
setin interfaceStructLike
-
-