Package org.apache.iceberg.actions
Interface ComputeTableStats
-
- All Superinterfaces:
Action<ComputeTableStats,ComputeTableStats.Result>
- All Known Implementing Classes:
ComputeTableStatsSparkAction
public interface ComputeTableStats extends Action<ComputeTableStats,ComputeTableStats.Result>
An action that collects statistics of an Iceberg table and writes to Puffin files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ComputeTableStats.Result
The result of table statistics collection.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComputeTableStats
columns(java.lang.String... columns)
Choose the set of columns to collect stats, by default all columns are chosen.ComputeTableStats
snapshot(long snapshotId)
Choose the table snapshot to compute stats, by default the current snapshot is used.
-
-
-
Method Detail
-
columns
ComputeTableStats columns(java.lang.String... columns)
Choose the set of columns to collect stats, by default all columns are chosen.- Parameters:
columns
- a set of column names to be analyzed- Returns:
- this for method chaining
-
snapshot
ComputeTableStats snapshot(long snapshotId)
Choose the table snapshot to compute stats, by default the current snapshot is used.- Parameters:
snapshotId
- long ID of the snapshot for which stats need to be computed- Returns:
- this for method chaining
-
-