commonMain.aws.sdk.kotlin.services.athena.model.QueryRuntimeStatistics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The query execution timeline, statistics on input and output rows and bytes, and the different query stages that form the query execution plan.
*/
public class QueryRuntimeStatistics private constructor(builder: Builder) {
/**
* Stage statistics such as input and output rows and bytes, execution time, and stage state. This information also includes substages and the query stage plan.
*/
public val outputStage: aws.sdk.kotlin.services.athena.model.QueryStage? = builder.outputStage
/**
* Statistics such as input rows and bytes read by the query, rows and bytes output by the query, and the number of rows written by the query.
*/
public val rows: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows? = builder.rows
/**
* Timeline statistics such as query queue time, planning time, execution time, service processing time, and total execution time.
*/
public val timeline: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsTimeline? = builder.timeline
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueryRuntimeStatistics(")
append("outputStage=$outputStage,")
append("rows=$rows,")
append("timeline=$timeline")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = outputStage?.hashCode() ?: 0
result = 31 * result + (rows?.hashCode() ?: 0)
result = 31 * result + (timeline?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as QueryRuntimeStatistics
if (outputStage != other.outputStage) return false
if (rows != other.rows) return false
if (timeline != other.timeline) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatistics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Stage statistics such as input and output rows and bytes, execution time, and stage state. This information also includes substages and the query stage plan.
*/
public var outputStage: aws.sdk.kotlin.services.athena.model.QueryStage? = null
/**
* Statistics such as input rows and bytes read by the query, rows and bytes output by the query, and the number of rows written by the query.
*/
public var rows: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows? = null
/**
* Timeline statistics such as query queue time, planning time, execution time, service processing time, and total execution time.
*/
public var timeline: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsTimeline? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatistics) : this() {
this.outputStage = x.outputStage
this.rows = x.rows
this.timeline = x.timeline
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.QueryRuntimeStatistics = QueryRuntimeStatistics(this)
/**
* construct an [aws.sdk.kotlin.services.athena.model.QueryStage] inside the given [block]
*/
public fun outputStage(block: aws.sdk.kotlin.services.athena.model.QueryStage.Builder.() -> kotlin.Unit) {
this.outputStage = aws.sdk.kotlin.services.athena.model.QueryStage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows] inside the given [block]
*/
public fun rows(block: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows.Builder.() -> kotlin.Unit) {
this.rows = aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsRows.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsTimeline] inside the given [block]
*/
public fun timeline(block: aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsTimeline.Builder.() -> kotlin.Unit) {
this.timeline = aws.sdk.kotlin.services.athena.model.QueryRuntimeStatisticsTimeline.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}