commonMain.aws.sdk.kotlin.services.glue.model.DoubleColumnStatisticsData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines column statistics supported for floating-point number data columns.
*/
public class DoubleColumnStatisticsData private constructor(builder: Builder) {
/**
* The highest value in the column.
*/
public val maximumValue: kotlin.Double = builder.maximumValue
/**
* The lowest value in the column.
*/
public val minimumValue: kotlin.Double = builder.minimumValue
/**
* The number of distinct values in a column.
*/
public val numberOfDistinctValues: kotlin.Long = builder.numberOfDistinctValues
/**
* The number of null values in the column.
*/
public val numberOfNulls: kotlin.Long = builder.numberOfNulls
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DoubleColumnStatisticsData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DoubleColumnStatisticsData(")
append("maximumValue=$maximumValue,")
append("minimumValue=$minimumValue,")
append("numberOfDistinctValues=$numberOfDistinctValues,")
append("numberOfNulls=$numberOfNulls")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maximumValue.hashCode()
result = 31 * result + (minimumValue.hashCode())
result = 31 * result + (numberOfDistinctValues.hashCode())
result = 31 * result + (numberOfNulls.hashCode())
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 DoubleColumnStatisticsData
if (!(maximumValue?.equals(other.maximumValue) ?: (other.maximumValue == null))) return false
if (!(minimumValue?.equals(other.minimumValue) ?: (other.minimumValue == null))) return false
if (numberOfDistinctValues != other.numberOfDistinctValues) return false
if (numberOfNulls != other.numberOfNulls) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DoubleColumnStatisticsData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The highest value in the column.
*/
public var maximumValue: kotlin.Double = 0.0
/**
* The lowest value in the column.
*/
public var minimumValue: kotlin.Double = 0.0
/**
* The number of distinct values in a column.
*/
public var numberOfDistinctValues: kotlin.Long = 0L
/**
* The number of null values in the column.
*/
public var numberOfNulls: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DoubleColumnStatisticsData) : this() {
this.maximumValue = x.maximumValue
this.minimumValue = x.minimumValue
this.numberOfDistinctValues = x.numberOfDistinctValues
this.numberOfNulls = x.numberOfNulls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DoubleColumnStatisticsData = DoubleColumnStatisticsData(this)
internal fun correctErrors(): Builder {
return this
}
}
}