Package org.apache.iceberg
Class PartitionStats
java.lang.Object
org.apache.iceberg.PartitionStats
- All Implemented Interfaces:
StructLike
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendStats
(PartitionStats entry) Appends statistics from given entry to current entry.int
long
void
deletedEntry
(Snapshot snapshot) Updates the modified time and snapshot ID for the deleted manifest entry.int
long
<T> T
void
liveEntry
(ContentFile<?> file, Snapshot snapshot) Updates the partition stats from the data/delete file.int
long
<T> void
set
(int pos, T value) int
size()
int
specId()
long
long
-
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
public long totalRecordCount() -
lastUpdatedAt
-
lastUpdatedSnapshotId
-
liveEntry
Updates the partition stats from the data/delete file.- Parameters:
file
- theContentFile
from 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:
size
in interfaceStructLike
-
get
- Specified by:
get
in interfaceStructLike
-
set
public <T> void set(int pos, T value) - Specified by:
set
in interfaceStructLike
-