commonMain.aws.sdk.kotlin.services.glue.model.SkewedInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies skewed values in a table. Skewed values are those that occur with very high frequency.
*/
public class SkewedInfo private constructor(builder: Builder) {
/**
* A list of names of columns that contain skewed values.
*/
public val skewedColumnNames: List? = builder.skewedColumnNames
/**
* A mapping of skewed values to the columns that contain them.
*/
public val skewedColumnValueLocationMaps: Map? = builder.skewedColumnValueLocationMaps
/**
* A list of values that appear so frequently as to be considered skewed.
*/
public val skewedColumnValues: List? = builder.skewedColumnValues
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SkewedInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SkewedInfo(")
append("skewedColumnNames=$skewedColumnNames,")
append("skewedColumnValueLocationMaps=$skewedColumnValueLocationMaps,")
append("skewedColumnValues=$skewedColumnValues")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = skewedColumnNames?.hashCode() ?: 0
result = 31 * result + (skewedColumnValueLocationMaps?.hashCode() ?: 0)
result = 31 * result + (skewedColumnValues?.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 SkewedInfo
if (skewedColumnNames != other.skewedColumnNames) return false
if (skewedColumnValueLocationMaps != other.skewedColumnValueLocationMaps) return false
if (skewedColumnValues != other.skewedColumnValues) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SkewedInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of names of columns that contain skewed values.
*/
public var skewedColumnNames: List? = null
/**
* A mapping of skewed values to the columns that contain them.
*/
public var skewedColumnValueLocationMaps: Map? = null
/**
* A list of values that appear so frequently as to be considered skewed.
*/
public var skewedColumnValues: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SkewedInfo) : this() {
this.skewedColumnNames = x.skewedColumnNames
this.skewedColumnValueLocationMaps = x.skewedColumnValueLocationMaps
this.skewedColumnValues = x.skewedColumnValues
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SkewedInfo = SkewedInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}