public class QueryStage implements Serializable
BigQuery provides diagnostic information about a completed query's execution plan (or query plan
for short). The query plan describes a query as a series of stages, with each stage comprising a
number of steps that read from data sources, perform a series of transformations on the input,
and emit an output to a future stage (or the final result). This class contains information on a
query stage.
Inheritance
Object >
QueryStage
Methods
equals(Object obj)
public final boolean equals(Object obj)
Parameter
Returns
Overrides
public long getCompletedParallelInputs()
Returns the number of parallel input segments completed.
Returns
getComputeMsAvg()
public long getComputeMsAvg()
Returns the time in milliseconds the average worker spent on CPU-bound tasks.
Returns
getComputeMsMax()
public long getComputeMsMax()
Returns the time in milliseconds the slowest worker spent on CPU-bound tasks.
Returns
getComputeRatioAvg()
public double getComputeRatioAvg()
Returns the time the average worker spent CPU-bound, divided by the longest time spent by any
worker in any segment.
Returns
getComputeRatioMax()
public double getComputeRatioMax()
Returns the time the slowest worker spent CPU-bound, divided by the longest time spent by any
worker in any segment.
Returns
getEndMs()
Returns the stage end time represented as milliseconds since epoch.
Returns
getGeneratedId()
public long getGeneratedId()
Returns a unique, server-generated ID for the stage within its plan.
Returns
public List<Long> getInputStages()
Returns a list of the stage IDs that are inputs to this stage.
Returns
getName()
Returns a human-readable name for the stage.
Returns
public long getParallelInputs()
Returns the number of parallel input segments to be processed.
Returns
getReadMsAvg()
public long getReadMsAvg()
Returns the time in milliseconds the average worker spent reading input.
Returns
getReadMsMax()
public long getReadMsMax()
Returns the time in milliseconds the slowest worker spent reading input.
Returns
getReadRatioAvg()
public double getReadRatioAvg()
Returns the time the average worker spent reading input data, divided by the longest time spent
by any worker in any segment.
Returns
getReadRatioMax()
public double getReadRatioMax()
Returns the time the slowest worker spent reading input data, divided by the longest time spent
by any worker in any segment.
Returns
getRecordsRead()
public long getRecordsRead()
Returns the number of rows (top-level records) read by the stage.
Returns
getRecordsWritten()
public long getRecordsWritten()
Returns the number of rows (top-level records) written by the stage.
Returns
getShuffleOutputBytes()
public long getShuffleOutputBytes()
Returns the total number of bytes written to shuffle.
Returns
getShuffleOutputBytesSpilled()
public long getShuffleOutputBytesSpilled()
Returns the total number of bytes writtedn to shuffle and spilled to disk.
Returns
getSlotMs()
Returns the slot-milliseconds used by the stage.
Returns
getStartMs()
Returns the stage start time represented as milliseconds since epoch.
Returns
getStatus()
public String getStatus()
Returns the current status for the stage.
Returns
getSteps()
public List<QueryStage.QueryStep> getSteps()
Returns the list of steps within the stage in dependency order (approximately chronological).
Returns
getWaitMsAvg()
public long getWaitMsAvg()
Returns the time in milliseconds the average worker spent waiting to be scheduled.
Returns
getWaitMsMax()
public long getWaitMsMax()
Returns the time in milliseconds the slowest worker spent waiting to be scheduled.
Returns
getWaitRatioAvg()
public double getWaitRatioAvg()
Returns the time the average worker spent waiting to be scheduled, divided by the longest time
spent by any worker in any segment.
Returns
getWaitRatioMax()
public double getWaitRatioMax()
Returns the time the slowest worker spent waiting to be scheduled, divided by the longest time
spent by any worker in any segment.
Returns
getWriteMsAvg()
public long getWriteMsAvg()
Returns the time in milliseconds the average worker spent writing output.
Returns
getWriteMsMax()
public long getWriteMsMax()
Returns the time in milliseconds the slowest worker spent writing output.
Returns
getWriteRatioAvg()
public double getWriteRatioAvg()
Returns the time the average worker spent writing output data, divided by the longest time
spent by any worker in any segment.
Returns
getWriteRatioMax()
public double getWriteRatioMax()
Returns the time the slowest worker spent writing output data, divided by the longest time
spent by any worker in any segment.
Returns
hashCode()
public final int hashCode()
Returns
Overrides
toString()
Returns
Overrides