Class BQQueryExecutionSummary


  • public class BQQueryExecutionSummary
    extends Object
    Class to contain BQ execution data. Immutable
    Author:
    Reem Khalaila
    • Constructor Detail

      • BQQueryExecutionSummary

        public BQQueryExecutionSummary​(long startTimeMs,
                                       String jobId,
                                       Long bytes,
                                       Boolean isCacheHit,
                                       Long totalRows,
                                       String qClassName,
                                       String sql,
                                       float durationSec,
                                       boolean isSuccessful)
        Constructor
        Parameters:
        startTime - The query start time, as millis since epoch
        jobId - The query's job id
        bytes - Total number of bytes processed
        isCacheHit - Indicates whether BQ cache has been used
        totalRows - Total number of rows in the query results
        qClassName - The query class name (some descendant of BQQuery). Not fully qualified name - only the class name is used here.
        sql - The executed query, as a legal query (no placeholders)
        durationSec - Total query execution time, in seconds
        isSuccessful - Indicates whether the query completed successfully
    • Method Detail

      • getStartTimeMs

        public long getStartTimeMs()
        Returns:
        The query start time, as millis since epoch
      • getJobId

        public String getJobId()
        Returns:
        The query's job id
      • getProcessedBytes

        public Long getProcessedBytes()
        Returns:
        Total number of bytes processed
      • getIsCacheHit

        public Boolean getIsCacheHit()
        Returns:
        Indicates whether BQ cache has been used
      • getTotalRows

        public Long getTotalRows()
        Returns:
        Total number of rows in the query results
      • getQueryClassName

        public String getQueryClassName()
        Returns:
        The query class name (some descendant of BQQuery). Not fully qualified name - only the class name is used here.
      • getSql

        public String getSql()
        Returns:
        The executed query, as a legal query (no placeholders)
      • getDurationSec

        public float getDurationSec()
        Returns:
        Total query execution time, in seconds
      • getIsSuccessful

        public boolean getIsSuccessful()
        Returns:
        Indicates whether the query completed successfully