Package org.apache.iceberg
Class PartitionStats
java.lang.Object
org.apache.iceberg.PartitionStats
- All Implemented Interfaces:
StructLike
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendStats(PartitionStats entry) Appends statistics from given entry to current entry.intlongvoiddeletedEntry(Snapshot snapshot) Updates the modified time and snapshot ID for the deleted manifest entry.intlong<T> TvoidliveEntry(ContentFile<?> file, Snapshot snapshot) Updates the partition stats from the data/delete file.intlong<T> voidset(int pos, T value) intsize()intspecId()longlongDeprecated.
-
Constructor Details
-
PartitionStats
-
-
Method Details
-
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
Deprecated.since 1.9.0, will be removed in 1.10.0, usetotalRecords()instead. -
totalRecords
-
lastUpdatedAt
-
lastUpdatedSnapshotId
-
liveEntry
Updates the partition stats from the data/delete file.- Parameters:
file- theContentFilefrom the manifest entry.snapshot- the snapshot corresponding to the live entry.
-
deletedEntry
Updates the modified time and snapshot ID for the deleted manifest entry.- Parameters:
snapshot- the snapshot corresponding to the deleted manifest entry.
-
appendStats
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
- Specified by:
getin interfaceStructLike
-
set
public <T> void set(int pos, T value) - Specified by:
setin interfaceStructLike
-
totalRecords()instead.