Class OperationMetrics

java.lang.Object
com.clickhouse.client.api.metrics.OperationMetrics

public class OperationMetrics extends Object
OperationStatistics objects hold various stats for complete operations.

It can be used for logging or monitoring purposes.

  • Field Details

  • Constructor Details

  • Method Details

    • getMetric

      public Metric getMetric(ServerMetrics metric)
    • getMetric

      public Metric getMetric(ClientMetrics metric)
    • getQueryId

      public String getQueryId()
    • operationComplete

      public void operationComplete()
      Complete counting metrics on operation and stop all stopwatches. Multiple calls may have side effects. Note: should not be called by user code, except when created by user code.
    • updateMetric

      public void updateMetric(ServerMetrics metric, long value)
    • setQueryId

      public void setQueryId(String queryId)
    • toString

      public String toString()
      Overrides:
      toString in class Object