Enum ServerMetrics

java.lang.Object
java.lang.Enum<ServerMetrics>
com.clickhouse.client.api.metrics.ServerMetrics
All Implemented Interfaces:
Serializable, Comparable<ServerMetrics>, java.lang.constant.Constable

public enum ServerMetrics extends Enum<ServerMetrics>
Stats returned by the server.

`-1` means the value is not available.

  • Enum Constant Details

    • NUM_ROWS_READ

      public static final ServerMetrics NUM_ROWS_READ
      Number of rows read by server from the storage.
    • NUM_ROWS_WRITTEN

      public static final ServerMetrics NUM_ROWS_WRITTEN
      Number of rows written by server to the storage.
    • TOTAL_ROWS_TO_READ

      public static final ServerMetrics TOTAL_ROWS_TO_READ
      Estimated number of rows to read from the storage.

    • NUM_BYTES_READ

      public static final ServerMetrics NUM_BYTES_READ
      Number of bytes read by server from the storage.
    • NUM_BYTES_WRITTEN

      public static final ServerMetrics NUM_BYTES_WRITTEN
      Number of bytes written by server to the storage.
    • RESULT_ROWS

      public static final ServerMetrics RESULT_ROWS
      Number of returned rows.
    • ELAPSED_TIME

      public static final ServerMetrics ELAPSED_TIME
      Elapsed time in nanoseconds.
  • Method Details

    • values

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

      public static ServerMetrics valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()