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

commonMain.aws.sdk.kotlin.services.firehose.serde.OrcSerDeDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.firehose.serde

import aws.sdk.kotlin.services.firehose.model.OrcSerDe
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct

internal fun serializeOrcSerDeDocument(serializer: Serializer, input: OrcSerDe) {
    val BLOCKSIZEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("BlockSizeBytes"))
    val BLOOMFILTERCOLUMNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("BloomFilterColumns"))
    val BLOOMFILTERFALSEPOSITIVEPROBABILITY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("BloomFilterFalsePositiveProbability"))
    val COMPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Compression"))
    val DICTIONARYKEYTHRESHOLD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("DictionaryKeyThreshold"))
    val ENABLEPADDING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnablePadding"))
    val FORMATVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("FormatVersion"))
    val PADDINGTOLERANCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("PaddingTolerance"))
    val ROWINDEXSTRIDE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RowIndexStride"))
    val STRIPESIZEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StripeSizeBytes"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BLOCKSIZEBYTES_DESCRIPTOR)
        field(BLOOMFILTERCOLUMNS_DESCRIPTOR)
        field(BLOOMFILTERFALSEPOSITIVEPROBABILITY_DESCRIPTOR)
        field(COMPRESSION_DESCRIPTOR)
        field(DICTIONARYKEYTHRESHOLD_DESCRIPTOR)
        field(ENABLEPADDING_DESCRIPTOR)
        field(FORMATVERSION_DESCRIPTOR)
        field(PADDINGTOLERANCE_DESCRIPTOR)
        field(ROWINDEXSTRIDE_DESCRIPTOR)
        field(STRIPESIZEBYTES_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.stripeSizeBytes?.let { field(STRIPESIZEBYTES_DESCRIPTOR, it) }
        input.blockSizeBytes?.let { field(BLOCKSIZEBYTES_DESCRIPTOR, it) }
        input.rowIndexStride?.let { field(ROWINDEXSTRIDE_DESCRIPTOR, it) }
        input.enablePadding?.let { field(ENABLEPADDING_DESCRIPTOR, it) }
        input.paddingTolerance?.let { field(PADDINGTOLERANCE_DESCRIPTOR, it) }
        input.compression?.let { field(COMPRESSION_DESCRIPTOR, it.value) }
        if (input.bloomFilterColumns != null) {
            listField(BLOOMFILTERCOLUMNS_DESCRIPTOR) {
                for (el0 in input.bloomFilterColumns) {
                    serializeString(el0)
                }
            }
        }
        input.bloomFilterFalsePositiveProbability?.let { field(BLOOMFILTERFALSEPOSITIVEPROBABILITY_DESCRIPTOR, it) }
        input.dictionaryKeyThreshold?.let { field(DICTIONARYKEYTHRESHOLD_DESCRIPTOR, it) }
        input.formatVersion?.let { field(FORMATVERSION_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy