Package com.google.cloud.bigquery
Class JobStatistics
- java.lang.Object
-
- com.google.cloud.bigquery.JobStatistics
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JobStatistics.CopyStatistics,JobStatistics.ExtractStatistics,JobStatistics.LoadStatistics,JobStatistics.QueryStatistics
public abstract class JobStatistics extends Object implements Serializable
A Google BigQuery Job statistics.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJobStatistics.CopyStatisticsA Google BigQuery Copy Job statistics.static classJobStatistics.ExtractStatisticsA Google BigQuery Extract Job statistics.static classJobStatistics.LoadStatisticsA Google BigQuery Load Job statistics.static classJobStatistics.QueryStatisticsA Google BigQuery Query Job statistics.static classJobStatistics.ReservationUsageReservationUsage contains information about a job's usage of a single reservation.static classJobStatistics.ScriptStatisticsA Google BigQuery Script statistics.static classJobStatistics.SessionInfostatic classJobStatistics.TransactionInfo
-
Constructor Summary
Constructors Modifier Constructor Description protectedJobStatistics(com.google.cloud.bigquery.JobStatistics.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCreationTime()Returns the creation time of the job in milliseconds since epoch.LonggetEndTime()Returns the end time of the job in milliseconds since epoch.LonggetNumChildJobs()Returns the number of child job executed.StringgetParentJobId()Returns the parent job id of child job.List<JobStatistics.ReservationUsage>getReservationUsage()ReservationUsage contains information about a job's usage of a single reservation.JobStatistics.ScriptStatisticsgetScriptStatistics()Returns the statistics for a child job of a script.JobStatistics.SessionInfogetSessionInfo()Info of the session if this job is part of one.LonggetStartTime()Returns the start time of the job in milliseconds since epoch.JobStatistics.TransactionInfogetTransactionInfo()Info indicates the transaction ID associated with the job, if any.StringtoString()
-
-
-
Method Detail
-
getCreationTime
public Long getCreationTime()
Returns the creation time of the job in milliseconds since epoch.
-
getEndTime
public Long getEndTime()
Returns the end time of the job in milliseconds since epoch. Returnsnullif the job has not finished yet.
-
getStartTime
public Long getStartTime()
Returns the start time of the job in milliseconds since epoch. Returnsnullif the job has not started yet.
-
getNumChildJobs
public Long getNumChildJobs()
Returns the number of child job executed.
-
getParentJobId
public String getParentJobId()
Returns the parent job id of child job.
-
getScriptStatistics
public JobStatistics.ScriptStatistics getScriptStatistics()
Returns the statistics for a child job of a script.
-
getReservationUsage
public List<JobStatistics.ReservationUsage> getReservationUsage()
ReservationUsage contains information about a job's usage of a single reservation.
-
getTransactionInfo
public JobStatistics.TransactionInfo getTransactionInfo()
Info indicates the transaction ID associated with the job, if any.
-
getSessionInfo
public JobStatistics.SessionInfo getSessionInfo()
Info of the session if this job is part of one.
-
-