@Stability(value=Stable)
public static interface CfnDeliveryStream.OpenXJsonSerDeProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kinesisfirehose.*;
OpenXJsonSerDeProperty openXJsonSerDeProperty = OpenXJsonSerDeProperty.builder()
.caseInsensitive(false)
.columnToJsonKeyMappings(Map.of(
"columnToJsonKeyMappingsKey", "columnToJsonKeyMappings"))
.convertDotsInJsonKeysToUnderscores(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDeliveryStream.OpenXJsonSerDeProperty.Builder
A builder for
CfnDeliveryStream.OpenXJsonSerDeProperty |
static class |
CfnDeliveryStream.OpenXJsonSerDeProperty.Jsii$Proxy
An implementation for
CfnDeliveryStream.OpenXJsonSerDeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDeliveryStream.OpenXJsonSerDeProperty.Builder |
builder() |
default Object |
getCaseInsensitive()
When set to `true` , which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them.
|
default Object |
getColumnToJsonKeyMappings()
Maps column names to JSON keys that aren't identical to the column names.
|
default Object |
getConvertDotsInJsonKeysToUnderscores()
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.
|
@Stability(value=Stable) @Nullable default Object getCaseInsensitive()
@Stability(value=Stable) @Nullable default Object getColumnToJsonKeyMappings()
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 .
@Stability(value=Stable) @Nullable default Object getConvertDotsInJsonKeysToUnderscores()
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 .
@Stability(value=Stable) static CfnDeliveryStream.OpenXJsonSerDeProperty.Builder builder()
Copyright © 2022. All rights reserved.