AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

OpenXJsonSerDe

import "github.com/aws/aws-sdk-go/service/firehose"

type OpenXJsonSerDe struct { CaseInsensitive *bool `type:"boolean"` ColumnToJsonKeyMappings map[string]*string `type:"map"` ConvertDotsInJsonKeysToUnderscores *bool `type:"boolean"` }

The OpenX SerDe. Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe.

CaseInsensitive

Type: *bool

When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them.

ColumnToJsonKeyMappings

Type: map[string]*string

Maps column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example, timestamp is a Hive keyword. If you have a JSON key named timestamp, set this parameter to {"ts": "timestamp"} to map this key to a column named ts.

ConvertDotsInJsonKeysToUnderscores

Type: *bool

When set to true, specifies that the names of the keys include dots and that you want Kinesis Data Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option.

The default is false.

Method

GoString

func (s OpenXJsonSerDe) GoString() string

GoString returns the string representation

SetCaseInsensitive

func (s *OpenXJsonSerDe) SetCaseInsensitive(v bool) *OpenXJsonSerDe

SetCaseInsensitive sets the CaseInsensitive field's value.

SetColumnToJsonKeyMappings

func (s *OpenXJsonSerDe) SetColumnToJsonKeyMappings(v map[string]*string) *OpenXJsonSerDe

SetColumnToJsonKeyMappings sets the ColumnToJsonKeyMappings field's value.

SetConvertDotsInJsonKeysToUnderscores

func (s *OpenXJsonSerDe) SetConvertDotsInJsonKeysToUnderscores(v bool) *OpenXJsonSerDe

SetConvertDotsInJsonKeysToUnderscores sets the ConvertDotsInJsonKeysToUnderscores field's value.

String

func (s OpenXJsonSerDe) String() string

String returns the string representation

On this page: