Enum Class TrinoMetricsReporter

java.lang.Object
java.lang.Enum<TrinoMetricsReporter>
io.trino.plugin.iceberg.TrinoMetricsReporter
All Implemented Interfaces:
Serializable, Comparable<TrinoMetricsReporter>, Constable, org.apache.iceberg.metrics.MetricsReporter

public enum TrinoMetricsReporter extends Enum<TrinoMetricsReporter> implements org.apache.iceberg.metrics.MetricsReporter
Trino default MetricsReporter implementation.

Similar to Iceberg's default MetricsReporter implementation, the LoggingMetricsReporter, but does not log at INFO level, just eliminating log file size impact.

See Also:
  • LoggingMetricsReporter
  • Enum Constant Details

  • Method Details

    • values

      public static TrinoMetricsReporter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TrinoMetricsReporter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • report

      public void report(org.apache.iceberg.metrics.MetricsReport report)
      Specified by:
      report in interface org.apache.iceberg.metrics.MetricsReporter