Package org.pipecraft.infra.bq
Class BQQueryExecutionSummary
- java.lang.Object
-
- org.pipecraft.infra.bq.BQQueryExecutionSummary
-
public class BQQueryExecutionSummary extends Object
Class to contain BQ execution data. Immutable- Author:
- Reem Khalaila
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetDurationSec()BooleangetIsCacheHit()booleangetIsSuccessful()StringgetJobId()LonggetProcessedBytes()StringgetQueryClassName()StringgetSql()longgetStartTimeMs()LonggetTotalRows()StringtoString()
-
-
-
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:
startTimeMs- The query start time, as millis since epochjobId- The query's job idbytes- Total number of bytes processedisCacheHit- Indicates whether BQ cache has been usedtotalRows- Total number of rows in the query resultsqClassName- The query class name (some descendant ofBQQuery). 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 secondsisSuccessful- 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
-
-