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 
    The result of table statistics collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    columns(String... columns)
    Choose the set of columns to collect stats, by default all columns are chosen.
    snapshot(long snapshotId)
    Choose the table snapshot to compute stats, by default the current snapshot is used.

    Methods inherited from interface org.apache.iceberg.actions.Action

    execute, option, options
  • Method Details

    • columns

      ComputeTableStats columns(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