Package io.trino.plugin.iceberg
Class TableStatisticsReader
java.lang.Object
io.trino.plugin.iceberg.TableStatisticsReader
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.apache.iceberg.StatisticsFile>getLatestStatisticsFile(org.apache.iceberg.Table icebergTable, long snapshotId) Returns most recent statistics file for the givensnapshotIdstatic TableStatisticsgetTableStatistics(TypeManager typeManager, ConnectorSession session, IcebergTableHandle tableHandle, org.apache.iceberg.Table icebergTable) static TableStatisticsmakeTableStatistics(TypeManager typeManager, org.apache.iceberg.Table icebergTable, Optional<Long> snapshot, TupleDomain<IcebergColumnHandle> enforcedConstraint, TupleDomain<IcebergColumnHandle> unenforcedConstraint, boolean extendedStatisticsEnabled)
-
Field Details
-
TRINO_STATS_PREFIX
Deprecated.- See Also:
-
TRINO_STATS_NDV_FORMAT
Deprecated.- See Also:
-
TRINO_STATS_COLUMN_ID_PATTERN
Deprecated. -
TRINO_STATS_NDV_PATTERN
Deprecated. -
APACHE_DATASKETCHES_THETA_V1_NDV_PROPERTY
- See Also:
-
-
Method Details
-
getTableStatistics
public static TableStatistics getTableStatistics(TypeManager typeManager, ConnectorSession session, IcebergTableHandle tableHandle, org.apache.iceberg.Table icebergTable) -
makeTableStatistics
public static TableStatistics makeTableStatistics(TypeManager typeManager, org.apache.iceberg.Table icebergTable, Optional<Long> snapshot, TupleDomain<IcebergColumnHandle> enforcedConstraint, TupleDomain<IcebergColumnHandle> unenforcedConstraint, boolean extendedStatisticsEnabled) -
getLatestStatisticsFile
public static Optional<org.apache.iceberg.StatisticsFile> getLatestStatisticsFile(org.apache.iceberg.Table icebergTable, long snapshotId) Returns most recent statistics file for the givensnapshotId
-