All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.snowflake.client.core.DownloaderMetrics Maven / Gradle / Ivy

There is a newer version: 3.19.0
Show newest version
/*
 * Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
 */
package net.snowflake.client.core;

/** Metrics related to chunk downloader performance */
public class DownloaderMetrics {
  /** time in millis that main thread is blocked and waits for chunk is ready */
  private final long millisWaiting;

  /** time in millis that background thread is downloading the data */
  private final long millisDownloading;

  /** time in millis that background thread is parsing data */
  private final long millisParsing;

  public DownloaderMetrics(long millisWaiting, long millisDownloading, long millisParsing) {
    this.millisWaiting = millisWaiting;
    this.millisDownloading = millisDownloading;
    this.millisParsing = millisParsing;
  }

  long getMillisWaiting() {
    return millisWaiting;
  }

  long getMillisDownloading() {
    return millisDownloading;
  }

  long getMillisParsing() {
    return millisParsing;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy