Class PartitionStats

  • All Implemented Interfaces:
    StructLike

    public class PartitionStats
    extends java.lang.Object
    implements StructLike
    • Constructor Detail

      • PartitionStats

        public PartitionStats​(StructLike partition,
                              int specId)
    • Method Detail

      • 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 - the ContentFile from 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:
        size in interface StructLike
      • get

        public <T> T get​(int pos,
                         java.lang.Class<T> javaClass)
        Specified by:
        get in interface StructLike
      • set

        public <T> void set​(int pos,
                            T value)
        Specified by:
        set in interface StructLike