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 class
JobStatistics.CopyStatistics
A Google BigQuery Copy Job statistics.static class
JobStatistics.ExtractStatistics
A Google BigQuery Extract Job statistics.static class
JobStatistics.LoadStatistics
A Google BigQuery Load Job statistics.static class
JobStatistics.QueryStatistics
A Google BigQuery Query Job statistics.static class
JobStatistics.ReservationUsage
ReservationUsage contains information about a job's usage of a single reservation.static class
JobStatistics.ScriptStatistics
A Google BigQuery Script statistics.static class
JobStatistics.SessionInfo
static class
JobStatistics.TransactionInfo
-
Constructor Summary
Constructors Modifier Constructor Description protected
JobStatistics(com.google.cloud.bigquery.JobStatistics.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCreationTime()
Returns the creation time of the job in milliseconds since epoch.Long
getEndTime()
Returns the end time of the job in milliseconds since epoch.Long
getNumChildJobs()
Returns the number of child job executed.String
getParentJobId()
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.ScriptStatistics
getScriptStatistics()
Returns the statistics for a child job of a script.JobStatistics.SessionInfo
getSessionInfo()
Info of the session if this job is part of one.Long
getStartTime()
Returns the start time of the job in milliseconds since epoch.JobStatistics.TransactionInfo
getTransactionInfo()
Info indicates the transaction ID associated with the job, if any.String
toString()
-
-
-
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. Returnsnull
if the job has not finished yet.
-
getStartTime
public Long getStartTime()
Returns the start time of the job in milliseconds since epoch. Returnsnull
if 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.
-
-