All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.LongColumnStatisticsData.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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 integer data columns.
 */
public class LongColumnStatisticsData private constructor(builder: Builder) {
    /**
     * The highest value in the column.
     */
    public val maximumValue: kotlin.Long = builder.maximumValue
    /**
     * The lowest value in the column.
     */
    public val minimumValue: kotlin.Long = 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.LongColumnStatisticsData = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("LongColumnStatisticsData(")
        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 LongColumnStatisticsData

        if (maximumValue != other.maximumValue) return false
        if (minimumValue != other.minimumValue) 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.LongColumnStatisticsData = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The highest value in the column.
         */
        public var maximumValue: kotlin.Long = 0L
        /**
         * The lowest value in the column.
         */
        public var minimumValue: kotlin.Long = 0L
        /**
         * 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.LongColumnStatisticsData) : 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.LongColumnStatisticsData = LongColumnStatisticsData(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy